Jump to content

Enabling PHP on Macbook


Recommended Posts

Hi, I just got a macbook, and am trying to setup PHP on it. I have tried following all the tutorials on google where it says to uncomment all the lines regarding PHP, then press wq: or whatever to save and quit, but then every time I  make a simple php script, it just echos back the text from the php script. for example when the php script says "<?php echo date(Y); ?>" it just prints "<?php echo date(Y); ?>" when I go to my IP. What am I doing wrong?
Link to comment
https://forums.phpfreaks.com/topic/27072-enabling-php-on-macbook/
Share on other sites

[quote]What am I doing wrong?[quote]

Could be any number of things. Maybe do a search for Xammp, not sure if they build a Mac version but this will install everything you need to get php running locally.

The tutorial you speak of where you hit :wq sounds like it was made for Linux. :wq is the command to save and quit the vim text editor. Are you using vim?

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.