
- You are not logged in. | Login
November 16, 2006 7:29 pm
- bobbee
- Member


php doesnt work for me
Hi, I'm pretty new to this PHP thing, I'm trying to make a page that just does a 'hello world' to test out my web host for php, but it's not working.
when I do this in my page
<?php print("hello world"); ?>
instead of giving me 'hello world', it prints out the PHP code!
here's my test.html file:
<html>
<body>
<?php
print ("hello world!");
?>
</body>
</html>
November 17, 2006 3:36 am
- phppat
- Member


Re: php doesnt work for me
I think your trouble is the name of the file - test.html
Your webserver probably doesn't look for PHP code in .html files, try renaming the file to test.php instead.
Alternatively (and a likely harder solution), you could setup your webserver to look for PHP code in .html files. If you're using Apache, it's probably set in an httpd.conf file in your server's root directory.
Hope that helps!
PHP monster


