fopen ???
| From: | CDN | Date: | Sun, 20 Apr 2003 12:36:58 +0000 |
| Subject: | fopen ??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-144535@lists.php.net to get a copy of this message | ||
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.