I'm New at this....

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
DnD
Forum Newbie
Posts: 2
Joined: Tue Apr 01, 2003 4:53 am

I'm New at this....

Post by DnD »

Hey I'm new at this and i'm trying to right a simple .php

html

body



?

echo "Hello World";

?



/body

/html

But when I load it up and check it out it comes up with a blank screen. Can you help me? Tell me what i'm doing wrong?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Bit strange that there's no <'s or >'s in the code you pasted above but anyhow, try putting this code in file and running it to check that PHP is functioning OK:

Code: Select all

<?php phpinfo(); ?>
Mac
User avatar
mchaggis
Forum Contributor
Posts: 150
Joined: Mon Mar 24, 2003 10:31 am
Location: UK

Post by mchaggis »

and also try viewing the source of the resulting page, you'd b supprise how revealing it can b
DnD
Forum Newbie
Posts: 2
Joined: Tue Apr 01, 2003 4:53 am

Post by DnD »

Maybe its the fact I didn't get either MySQL nor the PHP up and running? yeah that could be the problem......
the php code that shows up in the source shows pink.......
Post Reply