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.

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:
    1
    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:
    36
    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:
    1
    How can I do this?

    I have this domain with cPanel administration...
     
Loading...

Share This Page