Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

[PHP4BETA] fopen not working on URL - no reason that I can find From: Alexander Fordyce (alex <email protected>)
Date: 04/18/00

Hi all.

I posted a question a few days ago (see below), but I haven't had any
replies. I'd really appreciate a response from someone. This
problem has me flummoxed, and it's very important that I find some
resolution to this. Any thoughts extremely gratefully received.

Thanks...
Alex

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 <email protected>
- - - - - - - - - - - - -
Alexander Fordyce
alex <email protected>

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>