fopen() 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
rysolag
Forum Newbie
Posts: 1
Joined: Sat Jun 25, 2005 5:41 am

fopen() timeout

Post by rysolag »

hi,

how do i modify the timeout value for a call to fopen() in php. in my script i open a bunch or urls and if the file is temporarily unavailable the script sits there for about 3 minutes trying to open the thing when it's obviously not there. how can i make this timeout value something like 5 seconds. can i do it in my .htaccess?

thanks
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

FIRST
I dont think your problem is related with this form (PHP-Code), may you should try viewforum.php?f=31 (Apache, IIS, Web Servers)

SECOND
What error messages you get?
Post Reply