Page 1 of 1

I'm New at this....

Posted: Tue Apr 01, 2003 4:53 am
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?

Posted: Tue Apr 01, 2003 5:28 am
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

Posted: Tue Apr 01, 2003 8:15 am
by mchaggis
and also try viewing the source of the resulting page, you'd b supprise how revealing it can b

Posted: Tue Apr 01, 2003 8:45 am
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.......