Re: running PHP through command shell

From: Date: Wed, 19 Mar 2003 09:48:27 +0000
Subject: Re: running PHP through command shell
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-140358@lists.php.net to get a copy of this message
Jason Wong wrote: > On Wednesday 19 March 2003 16:34, Foong wrote: > >> Does anybody knows why I get call to undefined function for mysql_connect >> when running PHP through command shell. but it works fine when accessing >> the script through web browser. > > Most likely your php binary (CLI, not module) was not compiled with mysql > support. > If mysql is dynamicly loaded from php.ini your CLI php may also be using a different php.ini file, eg some RPM distributions use /etc/php-standalone/php.ini for CLI and /etc/php.ini for the mod_php version, if that's the case you might just need to add the extension into that php.ini as well

« previous php.general (#140358) next »