file_get_contents and time outs

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
EricS
Forum Contributor
Posts: 183
Joined: Thu Jul 11, 2002 12:02 am
Location: Atlanta, Ga

file_get_contents and time outs

Post by EricS »

Is there a way to set the time out for a get_file_contents call. I don't want to stop the execution of the script. I just want file_get_contents to quit after a certain period of time.

I know about stream_set_timeout(), but it appears that only works with fsockopen.

Thanks in advance.
Post Reply