Re: max_input_time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rick Lim wrote:
> Hi there,
>
> I am trying to run a command line windows php script where I wait for
> characters from the serial port i.e. $sTemp = fgets($Serialfp);
>
> After about 60 seconds the script times out and quits, I have tried to
> change max_input_time in php.ini but it still times out in 60 secs.
>
> I have set_time_limit(0); in the program and safe_mode = Off in php.ini
> which will allow the program to run endlessly but waiting for characters
> from the serial port just quits after 60 seconds no matter what value
> max_input_time is set to.
>
> The impression I get is that in windows max_input_time is ignored.
>
> Anyone have any info on this?

It seems more likely to me that fgets() is timing out.

You may need to resort to lower-level function calls to keep the stream open.

Check for PHP functions that change the time-out limit of streams and
sockets here:
http://php.net/fgets

-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux