Hello Ryan,

Wednesday, January 7, 2004, 3:07:16 AM, you wrote:

RA> Warning:
RA> fopen(http://www.site.com/a/check.php?ver=2&update=0): failed to
RA> open stream: HTTP request failed! HTTP/1.1 404 Not Found in /blah/i.php on
RA> line 74

For me simply using the @ sign as you did before (with include())
worked:

$file = @fopen ("http://www.site.com/a/check.php?ver=2&update=0";, "r");
if (!$file) {
    echo "<p>Unable to open remote file.\n";
    exit;
}
while (!feof ($file)) {
    $line = fgets ($file, 1024);
        echo $line;
}
fclose($file);

If that doesn't work for you perhaps a different method of opening the
file is required? (Socket access maybe)

-- 
Best regards,
 Richard                            mailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to