SasonX
08-27-2002, 10:40 PM
Hi,
I wanted to set up a cron job to extract data from a MySQL database, formatting the results. My Linux system does have a /usr/bin/php and I tried /usr/bin/php < test.php (it simply had phpinfo() in it ) and that worked fine, but when I tried anything against the MySQL database it complained of not finding the mysql_pconnect function.
Does anybody know how I can do do this .. do I need to recompile PHP or something like that, or change my PATH etc .. or can I NOT use PHP for such tasks ( advise on other possibilities would be helpful if I cant do this in PHP)
Thanks in advance
I wanted to set up a cron job to extract data from a MySQL database, formatting the results. My Linux system does have a /usr/bin/php and I tried /usr/bin/php < test.php (it simply had phpinfo() in it ) and that worked fine, but when I tried anything against the MySQL database it complained of not finding the mysql_pconnect function.
Does anybody know how I can do do this .. do I need to recompile PHP or something like that, or change my PATH etc .. or can I NOT use PHP for such tasks ( advise on other possibilities would be helpful if I cant do this in PHP)
Thanks in advance