php on command line

php on command line

Posted by: EricaC
Posted on: 2007-09-04 22:16:00

I am attempting to run a php script via command line (using /usr/local/bin/php on cadillac). however this is php 4.4.7 and I require php 5. is there another path that would get me a more current version?

Re: php on command line

Posted by: rlparker
Posted on: 2007-09-05 00:56:00

This ought to work:

/usr/local/php5/bin/php

--- ex:
$ /usr/local/php5/bin/php -v
PHP 5.2.3 (cli) (built: Aug 21 2007 17:24:23)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies
with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies


--rlparker

Tags: php scriptphp 5current versionphp 4usr