Re: SV: [PHP4BETA] fopen not working on URL - no reason that I can find
| From: | Alexander Fordyce | Date: | Tue, 18 Apr 2000 14:36:48 +0000 |
| Subject: | Re: SV: [PHP4BETA] fopen not working on URL - no reason that I can find | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13673@lists.php.net to get a copy of this message | ||
Aaarghh! I found my problem. There was a highly sneaky form of authentication which was creeping in and blocking access to the dynamic pages. I couldn't see it while browsing because my browser was already authenticated.
Incidentally, the way I found this is via a net client module called Snoopy. I used this module to fetch the page instead of doing a fopen, and it gave me the clue I needed... instead of giving the rather strange warning I mentioned below, it actually returned my authentication function's error message. I fixed that problem and everything's working again.
Doh!
Thanks for the response in any case.
Cheers,
Alex
At 3:17 PM +0200 4/18/00, Mikkel Staunsholm wrote:
What platform, and please do try RC1 and also a snapshot from snaps.php.net (or ftp://195.249.47.199/ if win32). Mikkel. Previous message: - - - - - - - - - - - Something has silently broken in a script which has been working for about a year with php3. I don't know of any of the published incompatibilities which would cause this, so I wonder if anyone has any thoughts. I have a script which generates static versions of dynamic pages by sucking up the dynamic content via a fopen - fread operation. Suddenly, php4 beta 4 (yes, I will upgrade to RC1 today) is giving me mysterious messages and failing. When I try to suck up [URL], it's saying... Warning: fopen("[URL]","r") - Success in [scriptname] on line 185 ...and it doesn't return a pointer. Why is is warning me about success, and why doesn't success seem to mean success? Incidentally, when I copy [URL] into a browser, it works perfectly. I'm puzzled, because, as I say, this has been working for a year and nothing in this bit has changed. Thanks in advance, Alex - - - - - - - - - - - - - Alexander Fordyce alex@ax-im.com