fopen not working on URL - no reason that I can find
| From: | Alexander Fordyce | Date: | Sat, 15 Apr 2000 09:35:42 +0000 |
| Subject: | fopen not working on URL - no reason that I can find | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13575@lists.php.net to get a copy of this message | ||
Morning, all.
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 Fordyce
- - - - - - - - - - - - -
Alexander Fordyce
alex@ax-im.com
- - - - - - - - - - - - -
Alexander Fordyce
alex@ax-im.com