|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-20 23:28 UTC] edink@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 26 10:00:01 2025 UTC |
Description: ------------ If fopen on a URL returns a warning that says it succeeded, but the handle is bad, perhaps the URL requires authentication? Seems self-evident, but, you know...it stumped me for a bit. This is not a bug, but wasn't mentioned in the documentation or anywhere I looked. Reproduce code: --------------- fopen('http://www.somedom.com/auth/reqd.php', 'r'); Expected result: ---------------- The page content. Actual result: -------------- Warning: file("http://www.somedom.com/auth/reqd.php") - Success in /var/www/html/test/reqd.php on line 2