PHP cron errormessage

2013 年 11 月 16 日3600

I get these errors:

/home/nordic/www/Nordiceliteversiontwobeta/phpcron/_cron_minute.php: line 1: ?php: No such      file or directory



/home/nordic/www/Nordiceliteversiontwobeta/phpcron/_cron_minute.php: line 2: syntax error near unexpected token `{'



/home/nordic/www/Nordiceliteversiontwobeta/phpcron/_cron_minute.php: line 2: `if($_SERVER['PHP_SELF'] != "/phpcron/_cron_minute"){'



my code is:

<?php



if($_SERVER['PHP_SELF'] != "/phpcron/_cron_minute"){



what went wrong here? i had the same code in a prew script but it dosent work here.

also the path is right, the _cron_minute.php file is in:

/www/Nordiceliteversiontwobeta/phpcron

and /home/nordic is right aswell.

it were working on one other file that had:

if($_SERVER['PHP_SELF'] != "/_cron_day"){



0 0