Hello, I have a problem running PHP scripts from PHP CLI. They work fine when I run them from my browser, but when I run same scripts from CLI, I get this error message:
Fatal error: Call to undefined function mysql_connect() in /home/re/script.php on line 3 I've googled and found out that I need to add extension=mysql.so in CLI's php.ini file (separate php.ini file that works for CLI only). The problem is my PHP configured with MySQL support and MySQL library doesn't load as dynamic library. I've searched for mysql.so on my server (find / -name mysql.so), but found only this: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread- multi/auto/DBD/mysql/mysql.so I guess it's mysql.so from another installation, but I've copied it to extension directory and added "extension=mysql.so" to the CLI's php.ini file. Now, when I run my script with CLI, I get message: Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non- zts-20060613/mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysql.so: undefined symbol: PL_memory_wrap in Unknown on line 0 Fatal error: Call to undefined function mysql_connect() in /home/re/videoEncode.php on line 3 So, I guess I was right, it's mysql.so from another installation. I wonder, where can I get proper mysql.so? Can I download it somewhere? PS: My distro is Fedora 6. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]