fopen() question

From: Date: Fri, 19 Apr 2002 00:04:36 +0000
Subject: fopen() question
Groups: php.general 
Request: Send a blank email to php-general+get-93615@lists.php.net to get a copy of this message
I am having a problem reading a remote file using fopen and http://. I suspect this is because the remote file is sending back a cookie. Can anyone confirm and/or offer a solution? Here is what I am doing. $CP_url is a full url in the form http://blah.com/footer.html $filename = "$CP_url"; $fd = fopen ($filename, "r"); $PAGE_FOOTER = fread ($fd, filesize ($filename)); fclose ($fd); David McInnis

« previous php.general (#93615) next »