The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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...
     
  2. clickelement

    clickelement Member

    Joined:
    Nov 26, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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:
    16
    how are you calling the script in the cron job? like this?

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


    .
     
Loading...

Share This Page