I set my php script at cron tab but it does not wrking properly.
I set the cron in 4 ways
1. /path/test.php
2. wget http://www.xxx.com/test.php
3. php -f /path/test.php or php -q /path/test.php
4. lynx -dump http://www.xxx.com/test.php
After execution of each cron job i get this type of mail
1. /path/test.php: cannot open ?: No such file or directory
2. wget: not found
3. php: not found
4. lynx: not found
code of test.php is:
PHP Code:
$time=date('Y-m-d H:i:s');
mail('santanu@yahoo.com', 'testing cron', $time,
"MIME-Version: 1.0\r\n".
"Content-type: text/html; charset=iso-8859-1\r\n".
"From: <admin@xxx.com>\r\n".
"CC: yy@yahoo.com\r\n".
"X-Mailer: PHP/" . phpversion());
I set cron job for many time in different server. But in this case I unable to run cron job. I can't understand the actual reason.




Bookmarks