php on command line problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, 2006-03-31 at 02:29 +0200, Kai Schaetzl wrote:
> The installed php on CentOS/RHEL is the CGI version. This means I should 
> be able to get command line arguments with $GLOBALS['argv'] or 
> $_SERVER['argv']. That's how the php documentation tells and how it works 
> f.i. on Suse. 
> However, on CentOS I get them only when I use the -n switch to php (no 
> php.ini). The problem with -n is that php cannot find the mysql_connect 
> function for some unknown reason.
>  
> So, how can I get to argv without using -n?
> Or can I add the cli version with an additional rpm? I search with yum for 
> php-cli and cli-php, but didn't find such a package.

http://www.php.net/manual/en/ini.core.php#ini.register-argc-argv

-- 
Ignacio Vazquez-Abrams <ivazquez@xxxxxxxxxxxx>
http://centos.ivazquez.net/

gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.centos.org/pipermail/centos/attachments/20060330/775b5dbb/attachment.bin

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux