|
|
Best application to run PHP on your mac?
|
|
|
|
Junior Member
Join Date: Sep 2004
Status:
Offline
|
|
Hi all,
I need an application to run PHP directly on my mac. Anybody have any suggestions?
Thanks!
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Apache.
If this answer sounds dickish, I apologize, but I suspect that there is a gap in understanding here somewhere.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status:
Offline
|
|
Maybe a tutorial like this one will help.
|
"The natural progress of things is for liberty to yield and government to gain ground." TJ
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Jun 2001
Location: Baltimore, MD
Status:
Offline
|
|
What exactly are you talking about? PHP comes pre-installed on your Mac. Write a script in php, make it executable, then execute the script (if you're in the same directory use ./script.php replacing 'script.php' with the name of your script).
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by nonhuman
What exactly are you talking about? PHP comes pre-installed on your Mac. Write a script in php, make it executable, then execute the script (if you're in the same directory use ./script.php replacing 'script.php' with the name of your script).
Actually, to execute the script in the command line you would do:
php /path/to/script
otherwise, it will try to execute the script as a shell script, which would just produce an error.
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Jun 2001
Location: Baltimore, MD
Status:
Offline
|
|
Originally Posted by besson3c
Actually, to execute the script in the command line you would do:
php /path/to/script
otherwise, it will try to execute the script as a shell script, which would just produce an error.
Not if you include the '#!/usr/bin/php -q' (default location for a Mac) statement at the top.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by nonhuman
Not if you include the '#!/usr/bin/php -q' (default location for a Mac) statement at the top.
True... However, wouldn't this pose problems with creating custom script headers?
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Jun 2002
Location: UK
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Mar 2001
Location: Indianapolis, IN USA
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2006
Location: Markleville, IN
Status:
Offline
|
|
Originally Posted by sushiism
The best solution has been mentioned. MAMP is amazing.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Nov 2003
Location: The back of the room
Status:
Offline
|
|
Be aware that the Apple build is not very feature rich. No image libraries, for instance.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by kelso
The best solution has been mentioned. MAMP is amazing.
I disagree. The best solution would be something like apt-get and the way it is integrated into Ubuntu where it would automatically notify you of an update available, and when requested, download and install the update leaving your config files intact and automatically restarting the server for you.
The closest we have to this is MacPorts, but last I checked it won't restart the server for you. Seeing how it is a source based package management system, it also requires XCode and the time to build the updates too (plus having to retrieve the updates and check for outdated versions of your ports).
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by zro
Be aware that the Apple build is not very feature rich. No image libraries, for instance.
Also outdated. Last I checked they were bundling an older version of PHP 4. There are some PHP 5-only functions such as htmlspecialchars_decode(), and PHP 4 is now being retired.
This is yet another pretty bizarre example of "what are you trying to do here, Apple?"
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Jun 2002
Location: UK
Status:
Offline
|
|
Originally Posted by besson3c
I disagree. The best solution would be something like apt-get and the way it is integrated into Ubuntu where it would automatically notify you of an update available, and when requested, download and install the update leaving your config files intact and automatically restarting the server for you.
The closest we have to this is MacPorts, but last I checked it won't restart the server for you. Seeing how it is a source based package management system, it also requires XCode and the time to build the updates too (plus having to retrieve the updates and check for outdated versions of your ports).
Drag and drop beats this
MAMP and Locomotive (For ROR) are the way to go
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by sushiism
Drag and drop beats this
MAMP and Locomotive (For ROR) are the way to go
How is that an improvement to what I've described?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|