php on Mac OS 10.7

General discussions related to php

Moderators: macek, egami, gesf

rounak
New php-forum User
New php-forum User
Posts: 2
Joined: Sat May 11, 2013 9:42 pm

php on Mac OS 10.7

Postby rounak » Sat May 11, 2013 9:45 pm

I have created a file named php1.php in /Library/Webserver/Documents
When I go to http://localhost/php1.php in my browser,
I see
<?php

echo "Hello World";

?>


instead of

Hello World

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: php on Mac OS 10.7

Postby johnj » Mon May 13, 2013 2:24 am

are you sure that php is enabled on your machine?

rounak
New php-forum User
New php-forum User
Posts: 2
Joined: Sat May 11, 2013 9:42 pm

Re: php on Mac OS 10.7

Postby rounak » Mon May 13, 2013 7:30 pm

that may have been the problem. :o


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 1 guest

cron