Re: read a file through firewall with file
| From: | Rasmus Lerdorf | Date: | Wed, 07 Aug 2002 05:23:45 +0000 |
| Subject: | Re: read a file through firewall with file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111471@lists.php.net to get a copy of this message | ||
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
>