RTS Posted November 13, 2006 Share Posted November 13, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/27072-enabling-php-on-macbook/ Share on other sites More sharing options...
trq Posted November 13, 2006 Share Posted November 13, 2006 [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? Quote Link to comment https://forums.phpfreaks.com/topic/27072-enabling-php-on-macbook/#findComment-123858 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.