# Fopen() timeout

**URL:** https://forum.kirupa.com/t/fopen-timeout/152506
**Category:** Uncategorized
**Created:** [June 25, 2005, 10:12am UTC](https://forum.kirupa.com/t/fopen-timeout/152506 "2005-06-25T10:12:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![beanSoldier](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@beanSoldier](https://forum.kirupa.com/u/beanSoldier)
#### Post date: [June 25, 2005, 10:12am UTC](https://forum.kirupa.com/t/fopen-timeout/152506/1 "2005-06-25T10:12:43Z")

</div>

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
