This is a discussion on max_input_time in window php within the alt.comp.lang.php forums, part of the PHP Programming Forums category; changing max_input_time in php.ini does not make any difference. What I am trying to do is wait for characters ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
changing max_input_time in php.ini does not make any difference.
What I am trying to do is wait for characters from the serial port, so when i do a fgets($fh) it waits for a line of characters from the serial port. If there is nothing there for 60 seconds then the program dies. Is there any way of disabling the max_input_time time out feature? |
|
|||
|
red rider spilled the following:
> changing max_input_time in php.ini does not make any difference. > > What I am trying to do is wait for characters from the serial port, so > when i do a fgets($fh) it waits for a line of characters from the serial > port. If there is nothing there for 60 seconds then the program dies. > > Is there any way of disabling the max_input_time time out feature? set_time_limit(0); within the code works for me - but if setting it in the config file doesn't work, then this might not either. HTH C. |
|
|||
|
"Colin McKinnon" wrote:
> red rider spilled the following: > > > changing max_input_time in php.ini does not make any difference. > > > > What I am trying to do is wait for characters from the serial port, > so > > when i do a fgets($fh) it waits for a line of characters from the > serial > > port. If there is nothing there for 60 seconds then the program > dies. > > > > Is there any way of disabling the max_input_time time out feature? > > set_time_limit(0); > > within the code works for me - but if setting it in the config file > doesn’t > work, then this might not either. > > HTH > > C. I recommend using Colin’s solution (which works on Windows), and then instead of waiting for input, do a polling loop checking for status=data available. I have not done serial port input in a long time (and certainly not in php), but that should work. -- http://www.dbForumz.com/ This article was posted by author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.dbForumz.com/PHP-max_inpu...ict178652.html Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=602617 |