Page 1 of 1

Beginner Question

Posted: Fri Nov 14, 2003 6:43 pm
by TheFisherman
I am brand new to PHP (1 hour) and cannot get a web page to execute the php. Here is the whole code for the page. I do not have any idea what the problem is. I will also include the view source from the bowser after the page loads.

CODE:
<HTML>
<BODY bgcolor=blue text=white>
<?php
echo "Hello World";
?>
</body>
</html>


VIEW SOURCE IN BROWSER:
<HTML>
<BODY bgcolor=blue text=white>
<?php
echo "Hello World";
?>
</body>
</html>

It appears to me that PHP is not processing the code, is that true and what do I do to get it to work???

Posted: Fri Nov 14, 2003 6:47 pm
by McGruff
Syntax looks good so I suspect php isn't installed.

Do you have a local development server? Hunt around on hotscripts.com for server installation kits. Can get various solutions which install php/mysql/apache with no fuss. I use easyphp.net (or dot org or whatever it is).

Posted: Fri Nov 14, 2003 6:55 pm
by TheFisherman
I am using my hosting company server. I went to the admin part of the site and it said that PHP was enabled. I somehow thing that is the problem though. Is there any way I can tell if PHP is installed??

Posted: Fri Nov 14, 2003 7:00 pm
by qads
did u save the file as a php file? ie, test.php

Posted: Fri Nov 14, 2003 7:00 pm
by TheFisherman
Never mind, I figured out my problem.

THANKS A BUNCH

Posted: Fri Nov 14, 2003 7:28 pm
by Linkjames
It would be nice if you posted what the solution was. Unlikley though it is, it may help someone else in the future solve thier problem.