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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to