command line mac os x

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
fendtele83
Forum Commoner
Posts: 27
Joined: Tue Oct 25, 2005 2:21 pm
Location: Woodbridge, NJ

command line mac os x

Post by fendtele83 »

Ok... so a while back i upgraded to PHP 5 on my 17" G4 Powerbook running OS X v.10.4.7.

Apache recognizes that i'm using the new version of PHP but the rest of my computer doesnt. What i mean, is that using php in the command line, it still uses php v4.

If i run the command php -v i get:

PHP 4.4.1 (cli) (built: Mar 5 2006 10:30:50)
...

I need the command line to know i'm using php 5, how do i accomplish this?

-Dave
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 »

It's possible when you upgraded to PHP5, that you didn't upgrade the CLI version - they are two different programs. If you did install it, then the problem likely is that you've still got the PHP4.4 CLI in your path. Find the PHP5 CLI program & make a shortcut to it from /usr/local/bin . That might involve overwriting the current 'php' program/shortcut (which shouldn't be a problem as it's likely the PHP 4.4 version.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply