NO PHP works!

matt10990

New member
Joined
Jun 15, 2006
Messages
1
I want to use PHP on my site and am fairly new to using it and have limited knowledge about apache servers etc but I can't seem to exectue any php code.

<html>
<?php
echo "Hello World";
?>
</html>

that is what i have been trying to test but nothing happens. The file IS saved as .php but it doesn't work? Any advice?
 
I presume you know that that's not valid html code, right?

Nevertheless, it should work.

You need to ask your hosting provider if they've got PHP turned on for your domain.

Jeff
 
Hey,

Try this:

Create a file in the domains root directory called "phpinfo.php" and place the following code in the file:

Code:
<?php 

phpinfo(); 

?>

Then access it this via your browser:

http://www.domain.name.com/phpinfo.php

That should tell you a lot more than you need to know (if php is functional) but, you won't have to wait on your hosting provider.

BTW, delete the file after you are done using it...

David
 
Back
Top