Re: read a file through firewall with file
| From: | Gaylen Fraley | Date: | Wed, 07 Aug 2002 21:19:56 +0000 |
| Subject: | Re: read a file through firewall with file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111585@lists.php.net to get a copy of this message | ||
Thanks for your help today. I finally ended up it reaching the proxy and
then the fputs or the fgets times out. It always times out with 30 seconds,
regardless of what I set the 4th parameter in the fsockopen to.
--
Gaylen
PHP KISGB v4.0.5 Guest Book http://www.gaylenandmargie.com/phpwebsite/
PHP KISSQ v2.0 Stock Quote http://www.gaylenandmargie.com/phpwebsite
"Rasmus Lerdorf" <rasmus@php.net> wrote in message
news:Pine.LNX.4.44.0208062223140.2051-100000@www.lerdorf.com...
> Nope, use fsockopen() directly to the proxy and fputs() your request.
>
> -Rasmus
>
> On Tue, 6 Aug 2002, Gaylen Fraley wrote:
>
> > I am behind a firewall at work.
> >
> > I have a script that uses file() to read a url
> > $read_file = file(http://www.somewhere.com);
> >
> > If I type the url in my browser it connects. However, when I use the
file()
> > command, it fails and I'm reasonably sure it's because I'm not passing
it
> > through some firewall syntax. Assuming the name of the firewall is
> > "firewall", is there a way to read this file using the file() command
from
> > PHP?
> >
> > Thanks,
> >
> > --
> > Gaylen
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>