> Does any one knows why while loop below ends after few loops when it meant
> to keep in loop?
>
> File name: while_loop_script.php
>
> define('run', 0);
> define('START', 10);
>
> while(START >run){
>
> $ch = curl_init("mydomain/update_script.php?action=run");
> curl_exec($ch);
> curl_close($ch);
>
> }
>
> using php.exe to scheldule task it every 5 minutes:
>
> C:\php.exe D:\update\while_loop_script.php
>
> --
> www.willandy.co.uk
>

hi,

maybe you should put
error_reporting(E_ALL);
ini_set('display_errors', true);

with the setting above, run the script
C:\php.exe D:\update\while_loop_script.php

you should see errors when script ends.

virgil
http://www.jampmark.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to