Stream_set_timeout

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nate660
Forum Newbie
Posts: 5
Joined: Sun Aug 24, 2008 12:36 am

Stream_set_timeout

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Stream_set_timeout

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