I am trying to get a PHP script running via cron. I added the shebang line, and I can get it to execute from the command prompt. However, when I run the same command (with full paths) via cron, the database connection fails. In the past I have used dl('mysql.so');, but everything is statically linked and there is no mysql.so file on the server. Is there a way to make this work without recompiling MySQL?
TIA