max_input_time in window php

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-11-2004
red rider
 
Posts: n/a
Default max_input_time in window php

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?


Reply With Quote
  #2 (permalink)  
Old 12-11-2004
Colin McKinnon
 
Posts: n/a
Default Re: max_input_time in window php

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.
Reply With Quote
  #3 (permalink)  
Old 12-14-2004
steve
 
Posts: n/a
Default Re: Re: max_input_time in window php

"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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0