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...
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...