bogdanovici666

Registered
Aug 29, 2005
2
0
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...
 

jayh38

Well-Known Member
Mar 3, 2006
1,213
0
166
Post your cron command line for it. You may not be telling it to parse with php in the cronjob.