Re: fopen ???
| From: | Peter Pistorius | Date: | Sun, 20 Apr 2003 13:47:05 +0000 |
| Subject: | Re: fopen ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144538@lists.php.net to get a copy of this message | ||
I am able to open the file with your code.
"Cdn" <news@cdn.dk> wrote in message
news:20030420123428.70500.qmail@pb1.pair.com...
> Hi
>
> I am trying to use "fopen" to open a file on another web site but I get
this
> message:
>
> Warning: fopen("http://www.cdn.dk/test.txt",
> "r") - No such file or
> directory in
> /customers/roskilderoklub.dk/roskilderoklub.dk/httpd.www/php/test.php on
> line 9
>
> My code:
> //------------------------------------------------------------------------
> <html>
>
> <head>
> <title> Open Page Test </title>
> </head>
>
> <body>
> <?php
> $handle=fopen("http://www.cdn.dk/test.txt",
> "r");
>
> echo " ".$handle." ";
>
>
> ?>
> </body>
> </html>
> //------------------------------------------------------------------------
> What am I doing wrong ??
>
> Christian.
>
>