I 've tried that site but its not working, its giving syntax errors:
CODE
<?php
set_time_limit ('5');
?>
Results in:
CODE
Parse error: syntax error, unexpected T_STRING in C:\wamp\www\Game\lolz2.php on line 2
I've also tried one of their scripts:
CODE
<?php
set_time_limit(20);
while ($i<=10)
{
echo "i=$i ";
sleep(100);
$i++;
}
?>
gives:
CODE
Parse error: syntax error, unexpected T_STRING in C:\wamp\www\Game\lolz2.php on line 2
Iam guessing the set_time_limit(); function isn't working here:/. Note iam trying these on my computer, i have wamp server with Apache Version : 2.2.8 PHP Version : 5.2.6.
On a side question i noticed that today i was emailed a message by my cronjob saying,erm do i quote or code it:P?
CODE
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/khalilov/cron/tick.php on line 3 mysql_error
My script was working fine but i moved it to that directory so that no one can enter it manually by just typing the link. And i believe it worked even after i changed the directory for a while. Now its not :/. My scripts runs every 30 minutes btw, why did i recieve this message once O.o. Did the error disable my cronjob? cuz i still see it there.
Edit: Now its working O-O, srry if iam contradicting my self or something but it looks like the script gave an error only once, how is that possible/
Comment/Reply (w/o sign-up)