On Mon, 2006-04-10 at 23:11, Richard Lynch wrote: > On Mon, April 10, 2006 9:59 pm, Rasmus Lerdorf wrote: > > Richard Lynch wrote: > >> It would be REALLY NIFTY if fopen and friends which understand all > >> those protocols of HTTP FTP HTTPS and so on, allowed one to set a > >> timeout for URLs, but they don't and nobody with the skills to > >> change > >> that (not me) seems even mildly interested. :-( :-( :-( > > > > Because it is already there and has been since Sept.23 2002 when it > > was > > added. > > I've added a Note to 'fopen' so maybe others won't completely miss > this feature and look as foolish as I do right now. :-) If it's anything like the helpful note I added about using copy( source, dest ) where dest accidentally points to source (due to linking), you'll get a nice retarded email like the following: --------------------------------------------------------------- You are receiving this email because your note posted to the online PHP manual has been removed by one of the editors. Read the following paragraphs carefully, because they contain pointers to resources better suited for requesting support or reporting bugs, none of which are to be included in manual notes because there are mechanisms and groups in place to deal with those issues. The user contributed notes are not an appropriate place to ask questions, report bugs or suggest new features; please use the resources listed on <http://php.net/support> for those purposes. This was clearly stated in the page you used to submit your note, please carefully re-read those instructions before submitting future contributions. Bug submissions and feature requests should be entered at <http://bugs.php.net/>. For documentation errors use the bug system, and classify the bug as "Documentation problem". Support and ways to find answers to your questions can be found at <http://php.net/support>. Your note has been removed from the online manual. ----- Copy of your note below ----- User tip... it can be completely befuddling if you don't realize your source and destination files are the same (this can happen with directory links). When this happens there are a couple of possibilities... at first I was using php 4.4.0 and the files just became 0 length. The second, outcome after I upgraded to 4.4.2 (since I didn't realize the problem) was that the copy function returned a failure. This was tricky to track since there's no error output indicating why the copy failed :) -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php