Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

CRON - MySQL FATAL ERROR!!!!!

Discussion in 'General Discussion' started by mitul, Feb 26, 2004.

  1. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    166
    Greetings,

    The problem is with the PHP support for MySQL. To summarize, a PHP/MySQL script will run fine in a web browser but fails with the following error when run as a cron job:

    Fatal error: Call to undefined function: mysql_connect() in /home/xxx/public_html/xxx/xxx.php on line 23

    Any suggestions would be greatly appreciated...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. clickelement

    clickelement Member

    Joined:
    Nov 26, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    same problem

    I'm having the same problem. Does anyone have any suggestions? I've been up 2 nights in a row trying to figure this one out. :(
     
  3. fikse

    fikse Well-Known Member

    Joined:
    May 10, 2003
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    166
    how are you calling the script in the cron job? like this?

    /usr/bin/php -f /home/xxx/public_html/xxx/xxx.php


    .
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice