Help To Run CronJob
Posted: Fri Dec 11, 2009 12:10 am
Hi!
my cronjob run but give an error in my php file like that
/home/contacse/public_html/cronjob.php: line 1: ?php: No such file or directory
/home/contacse/public_html/cronjob.php: line 3: syntax error near unexpected token
`'localhost','contacse_project','
/home/contacse/public_html/cronjob.php: line 3: `mysql_connect
('localhost','contacse_project','
If I execute this file myself then this is ok but when cronjob execute this file then give above errors.
Please help me that what is the solution for this.
Thanking you
my cronjob run but give an error in my php file like that
/home/contacse/public_html/cronjob.php: line 1: ?php: No such file or directory
/home/contacse/public_html/cronjob.php: line 3: syntax error near unexpected token
`'localhost','contacse_project','
/home/contacse/public_html/cronjob.php: line 3: `mysql_connect
('localhost','contacse_project','
If I execute this file myself then this is ok but when cronjob execute this file then give above errors.
Please help me that what is the solution for this.
Thanking you