Beginner Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
TheFisherman
Forum Newbie
Posts: 8
Joined: Fri Nov 14, 2003 6:43 pm
Location: Plano, Texas

Beginner Question

Post 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???
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post 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).
TheFisherman
Forum Newbie
Posts: 8
Joined: Fri Nov 14, 2003 6:43 pm
Location: Plano, Texas

Post 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??
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

did u save the file as a php file? ie, test.php
TheFisherman
Forum Newbie
Posts: 8
Joined: Fri Nov 14, 2003 6:43 pm
Location: Plano, Texas

Post by TheFisherman »

Never mind, I figured out my problem.

THANKS A BUNCH
Linkjames
Forum Commoner
Posts: 90
Joined: Tue Sep 16, 2003 8:39 am

Post 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.
Post Reply