i hav a problem

m new to php nd i started with writin my first page but whenever i start my browser i see the complete code and nt the output i need

i wrote

<html>
	<title>my php page</title>
	<body>
	<?php
		echo "hello there!";
	?>
	</body>
</html>

the output is d same text above

help me

Your probably not previewing the file via through the server. What testing server are you using? Make sure your url is something like with http://localhost/filename.php. Where filename.php is your file. Also make sure the file is saved in your htdocs folder.


i hav wamp5

i dnt knw....m writin d url correctly....

i downloaded apache http server 2.2, php 5 and mysql server 6.0...... dere occured a problem in php5 sayin dat manually configure ur server...bt i really dnt knw how to do that...

nd one more thing i need a connector for php and mysql

d links on d google site r broken

plz help out

you might run this program directly from the browser, you need to have some web server, just install WAMP or XAMPP on your PC, if you are windows user

This article has been dead for over six months. Start a new discussion instead.