Jump to content

[SOLVED] php not displaying correctly


Kidrandom

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.