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!

Problems php file - cron job [moved]

Discussion in 'General Discussion' started by bogdanovici666, May 19, 2006.

  1. bogdanovici666

    bogdanovici666 Registered

    Joined:
    Aug 29, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    I have a problem with a cron job.

    If a run the php file from the browser, it works fine.

    When the php file is run from cron, i get on my email the following message:

    /home-sata/~username/public_html/_admin/cronul.php: line 1: ?
    : No such file or directory
    /home-sata/~username/public_html/_admin/cronul.php: line 2: syntax error near unexpected token `
    '
    /home-sata/~username/public_html/_admin/cronul.php: line 2: `function connect()
    '
    The permission for php file is 777...i've tried with 755...

    help me...
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    Post your cron command line for it. You may not be telling it to parse with php in the cronjob.
     
  3. bogdanovici666

    bogdanovici666 Registered

    Joined:
    Aug 29, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    How can I do this?

    I have this domain with cPanel administration...
     
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