Welcome to dbForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

max_input_time in window php

 
   Database Forums (Home) -> PHP RSS
Next:  What does maxquerylen in v$undostat really mean?  
Author Message
test28

External


Since: Dec 11, 2004
Posts: 1



(Msg. 1) Posted: Sat Dec 11, 2004 1:40 am
Post subject: max_input_time in window php
Archived from groups: alt>comp>lang>php (more info?)

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?

 >> Stay informed about: max_input_time in window php 
Back to top
Login to vote
Colin McKinnon

External


Since: Apr 21, 2004
Posts: 38



(Msg. 2) Posted: Sat Dec 11, 2004 5:40 pm
Post subject: Re: max_input_time in window php [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: max_input_time in window php 
Back to top
Login to vote
steve




Joined: Jan 06, 2004
Posts: 655



(Msg. 3) Posted: Mon Dec 13, 2004 7:25 pm
Post subject: Re: max_input_time in window php [Login to view extended thread Info.]

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.
 >> Stay informed about: max_input_time in window php 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Size new window - Hi all The following code ( using target='_blank' ) opens a "normal" big size window. <a target='_blank' href='page2.php'>HERE</a> How can I open a window with a small size? TIA John

chat window - In gmail when we send message through chat automatically window opens at other side how this happens.pls help

hwo to get browser window size? - I want to collect stats about people viewing my web site. Actually, I already use Awstats, but it doesn't do what I want, so I will code it myself. I want to know what size browser window visitors to my site use (preferably; failing that, what their..

window.setTimeout equivalent in PHP? - Is there a straightforward way of implementing a PHP equivalent to window.setTimeout? In a javascript web app, it's often the case that things are done on an event driven basis. For example, html elements might have things like onclick="buttonClic...

onclick won't open new window until after refresh - TIA for any suggestions. I have a number of links to other pages in the current page. When the page is initially loaded none of the "onclick" events that call a Javascript to do a "window.open" work. However, if I merely click the w...
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]