php not displaying correctly
Posted: Thu Jan 22, 2009 6:27 pm
I have just started learning PHP from a training Cd but I'm having trouble with a script not displaying properly. I'm Running mac os x 10.5.5
Personal web sharing activated apache running, I have edited httpd.conf and removed the # from
LoadModule php5_module libexec/apache2/libphp5.so
made a simple page in php
saved the page /user/Sites/index.php
and doesn't displays a blank page in the browser. Also when I view the source code the php lines are visible and highlighted pink.
A PHPtest page with the PHP code: works, and displays the Entropy version correctly.
Can anyone point me in the correct direction
Thanks for your answers guys. I have been writing my code in full php tags I just didn't write it in on this post. Sorry about that. I've edited it above.
Personal web sharing activated apache running, I have edited httpd.conf and removed the # from
LoadModule php5_module libexec/apache2/libphp5.so
made a simple page in php
Code: Select all
<?php echo("hello world "); ?>and doesn't displays a blank page in the browser. Also when I view the source code the php lines are visible and highlighted pink.
A PHPtest page with the PHP code:
Code: Select all
<?php phpinfo(); ?>Can anyone point me in the correct direction
Thanks for your answers guys. I have been writing my code in full php tags I just didn't write it in on this post. Sorry about that. I've edited it above.