Kidrandom Posted January 23, 2009 Share Posted January 23, 2009 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 <?php echo("hello world "); ?> 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: <?php phpinfo(); ?> works, and displays the Entropy version correctly. Can anyone point me in the correct direction Thanks for your answers guys. Link to comment https://forums.phpfreaks.com/topic/142088-solved-php-not-displaying-correctly/ Share on other sites More sharing options...
RichardRotterdam Posted January 23, 2009 Share Posted January 23, 2009 I believe you are trying to directly open that php file from disk instead of calling via localhost Link to comment https://forums.phpfreaks.com/topic/142088-solved-php-not-displaying-correctly/#findComment-744136 Share on other sites More sharing options...
Kidrandom Posted January 25, 2009 Author Share Posted January 25, 2009 yep, spot on. Thanks for your help. Link to comment https://forums.phpfreaks.com/topic/142088-solved-php-not-displaying-correctly/#findComment-745775 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.