[CentOS] php on command line problems
Jim Perrin
jperrin at gmail.comFri Mar 31 00:59:03 UTC 2006
- Previous message: [CentOS] php on command line problems
- Next message: [CentOS] php on command line problems
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 3/30/06, Kai Schaetzl <maillists at conactive.com> 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. The mysql functionality is loaded as a module which is included from php.ini. If you don't load php.ini, you get no mysql. -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775
- Previous message: [CentOS] php on command line problems
- Next message: [CentOS] php on command line problems
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list