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
command line mac os x
Moderator: General Moderators
- fendtele83
- Forum Commoner
- Posts: 27
- Joined: Tue Oct 25, 2005 2:21 pm
- Location: Woodbridge, NJ
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.