Gossamer Forum
Home : General : Perl Programming :

PHP Via Command Line..

Quote Reply
PHP Via Command Line..
I've been wondering about this for some time now. I can't seem to find any relevent information about how to do this (if im wrong please tell me Tongue). Basically, via SSH, Perl has its own command, i.e. perl filename.cgi. However, php filename.php doe not work, and nor does just typing filename.php. Does anyone know how you actually run a PHP script via command line?

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] PHP Via Command Line.. In reply to
I believe you have to install PHP as a CGI as well as an Apache module before you get the /usr/local/bin/php (or whatever).

Adrian
Quote Reply
Re: [brewt] PHP Via Command Line.. In reply to
Ah, thanks Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!