Page 1 of 1

Stream_set_timeout

Posted: Sun Aug 24, 2008 6:54 pm
by nate660
Is there anything inbetween 1 and 0 like .5 for half a second

I really need this because 1 is to long and 0 is to quick :S lol

Re: Stream_set_timeout

Posted: Sun Aug 24, 2008 7:45 pm
by califdon
nate660 wrote:Is there anything inbetween 1 and 0 like .5 for half a second

I really need this because 1 is to long and 0 is to quick :S lol
The way to find an answer to a question like this is (hold onto your hat!) read the manual. Go to Google and enter stream_set_timeout. The first result on Google will be the exact PHP Manual page that explains this function. Then, as you read the first line of the description, you should note that the parameters must be int (integer), but also there is an optional parameter of microseconds, so if you want a half second, you should be able to enter a 0 for seconds, a comma, and 500000 for microseconds.