Re: connect through firewall
| From: | Dimo Velev | Date: | Mon, 11 Dec 2000 09:33:17 +0000 |
| Subject: | Re: connect through firewall | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29647@lists.php.net to get a copy of this message | ||
Hi,
thanks for the tip, i had got that wrong, but still:
I tried with full path and file name but the problem (with the same error
messages) persists.
any ideas?
dimo
----- Original Message -----
From: "Tim Ward" <tim.ward@stivesdirect.com>
To: "'Dimo Velev'" <velev@informatik.tu-muenchen.de>
Sent: Monday, December 11, 2000 11:14 AM
Subject: RE: [PHP] connect through firewall
> surely fopen requires a full (or relative) path plus filename. Your
example
> just gives a path -if this is the line that's falling over that's why.
> fopen() opens the file, it isn't like passing a url to the browser.
>
> Tim Ward
> Senior Systems Engineer
>
> Please refer to the following disclaimer in respect of this message:
> http://www.stivesdirect.com/e-mail-disclaimer.html
>
>
> > -----Original Message-----
> > From: Dimo Velev [mailto:velev@informatik.tu-muenchen.de]
> > Sent: 10 December 2000 10:59
> > To: PHP-general
> > Subject: [PHP] connect through firewall
> >
> >
> > hi,
> > its me again, i tried with fopen() and it seems to almost do
> > the job. except
> > that when i try to view the following php page:
> > <?PHP
> > $fp =
> > fopen("http://www.php.net/","r");
> > $contents = fread ($fp, 1000);
> > fclose ($fp);
> > print "$contents";?>
> > i get
> > Warning:
> > fopen("http://www.php.net/","r") - Bad file
> > descriptor in
> > d:\www\Apache\htdocs/test.php on line 10
> > Warning: Supplied argument is not a valid File-Handle resource in
> > d:\www\Apache\htdocs/test.php on line 11
> > Warning: Supplied argument is not a valid File-Handle resource in
> > d:\www\Apache\htdocs/test.php on line 12
> >
> > is that becouse i am behind firewall? how can I get it
> > working, behind the
> > firewall
> > dimo
> >
> >