PHP dev on OSX

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

PHP dev on OSX

Post by onion2k »

I'm considering buying a shiny new laptop as a backup to my creaky old development PC, and I was thinking of buying a Mac Powerbook. But before I do..

1. Any installation issues for Apache/PHP/Mysql on OSX that I should know about?
2. Any differences between PHP on OSX and Windows/Linux?
3. Any module differences? Particularly with regard to GD2.

And, as a completely leftfield shot in the dark question.. would it be possible to run PHP4, PHP5, MySQL 4.1, and MySQL 5.0 all at once on OSX? If they were run under different user accounts that would be fine. I'd like to move my skillset to the latest versions of things but I'd need to be able to maintain existing code as well

Any help would be ace. Cheers.
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

1. Depends, there are binary installer packages which should take the headaches out of it. If you're compiling them yourself, then yes, it's not as straight forward as it is on other platforms.

2. Not as far as I'm aware.

3. GD support is relatively straight forward.

Yes, two different users can run two different setups/configurations.
marianopeterson
Forum Newbie
Posts: 5
Joined: Wed Oct 12, 2005 4:22 pm
Location: San Francisco

Re: PHP dev on OSX

Post by marianopeterson »

onion2k wrote:2. Any differences between PHP on OSX and Windows/Linux?
OSX doesn't seem to suppot Locale (LC_COLLATE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, and LC_TIME) which can be frustrating when using Smarty temlates and otherwise trying to format your ouput according to locale. The locale files are in place (/usr/share/locale), but OSX's locale functions (and therefore PHP's locale functions) just don't work.

The first time I installed PHP on OSX I used http://www.entropy.ch/software/macosx/php/ , which worked very well.

Generally I've had a good experience running PHP on OSX.
Last edited by marianopeterson on Thu Oct 13, 2005 5:47 pm, edited 1 time in total.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

I imagine the PHP installation is of a UNIX base. There are some differences between Windows and Unix versions of PHP, but those differences depend on the function you call. It's nothing as big as argument ordering or anything, just default I think.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
imstupid
Forum Commoner
Posts: 84
Joined: Fri Feb 18, 2005 1:24 pm

Post by imstupid »

on a side note,
in case you care, you might want to hold out on buying that powerbook a tad. there's been a lot of rumors flying around the apple world, especially with powerbooks vs. heat vs intel chips vs. ibm, etc. etc., so I thought I'd just throw that out there. Although some of the information is based on theories and elapsed time, I'd check out macrumors.com for anything unusual that might be going on out there. I've been waiting to buy a new powerbook for the past year, however cash flow is a major factor in my situation. I just wish they were a little cheaper. Like that girl I dated in college.
Post Reply