Hi. I am using PHP5/MySQL/Apache2 on a Suse 11 Linux box that I built and administer. Obviously, I'm not a Linux expert.
I'm having a strange issue running a PHP script from the command line (and more importantly, from crontab). It tells me that mysql_connect() is an undefined function. Yet the function works just fine if I pull up a web page that uses it!
I created a script using get_defined_functions() and ran it from PUTTY - sure enough, no mysql_connect -- in fact, no mysql functions at all! YET...if I run the exact same script from within Firefox, all the mysql functions appear! In fact, there are 1,000+ more functions defined when I view the script from Firefox versus the console.
Can someone explain this anamoly to me and tell me how to fix it?