Re: [php] while loop failure
| From: | Virgilio Quilario | Date: | Mon, 06 Apr 2009 13:31:14 +0000 |
| Subject: | Re: [php] while loop failure | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291125@lists.php.net to get a copy of this message | ||
> 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