RE: [PHP] fopen failing to connect
| From: | Vail, Warren | Date: | Thu, 16 May 2002 01:25:00 +0000 |
| Subject: | RE: [PHP] fopen failing to connect | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97853@lists.php.net to get a copy of this message | ||
Based on the parts of this thread that I have read, I didn't see anything
about the failing platform. What is the OS, Webserver, etc.? Does it have
to function thru a gateway or proxy server to get to URL you are trying to
open, perhaps security is tighter on this machine? Are tcp/ip connections
to port 80 from this machine blocked in any way?
The "bad file number" message could be a clue. Does this platform return -1
when the file does not exist (or is blocked)?
Using a browser, you get a series of numbers (mostly floats). Perhaps if
you were to exercise a browser on this machine against the same URL, you
might get a few more clues.
just a few thoughts,
Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-----Original Message-----
From: Jennifer [mailto:jennij05@yahoo.com]
Sent: Wednesday, May 15, 2002 4:49 PM
To: Miguel Cruz
Cc: php-general@lists.php.net
Subject: Re: [PHP] fopen failing to connect
i looked at the php.ini file and f wrapper is configured. thanks for the
suggestion. i am still looking for any suggestions anyone has. thanks.
-jennifer
Miguel Cruz wrote:
> Sounds like maybe the fopen url wrapper is not installed. I've never taken
> any particular steps to install it, so I'm not sure how that would come
> about.
>
> miguel
>
> On Wed, 15 May 2002, jennifer jefferson wrote:
> > thanks for looking. my guess is that it could be a
> > server configuration issue. i am really not sure. the
> > actual script works.... just not on the server i need
> > it to work on. maybe it has something to do with the
> > .ini file or the installation. i am not very familiar
> > with that. does this sound likely as a problem?
> > thanks.
> >
> > -jennifer
> >
> > --- Kevin Stone <kevin@helpelf.com> wrote:
> > > Jennifer, works just fine here..
> > >
> > > ---------
> > > $fp =
> > >
> >
fopen("http://www.thedeal.com/NASApp/cs/ContentServer?pagename=TheDeal/xmlfe
> > > ed","r");
> > > if ($fp !== FALSE)
> > > echo "The file exists!";
> > > else
> > > echo "The file does not exist";
> > > ---------
> > >
> > > This prints "The file exists!" so it may be
> > > something else in your code
> > > cuasing the problem. And when I read the file it
> > > displays a bunch of
> > > numbers. Don't know what you could be doing wrong
> > > but if you continue to
> > > experiece problems post some more of your code and
> > > maybe we can decipher the
> > > error from that.
> > >
> > > -Kevin
> >
> > __________________________________________________
> > Do You Yahoo!?
> > LAUNCH - Your Yahoo! Music Experience
> > http://launch.yahoo.com
> >
> >
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php