note 10708 added to fopen

From: Date: Thu, 18 Jan 2001 17:10:58 +0000
Subject: note 10708 added to fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-9928@lists.php.net to get a copy of this message
I've tryed to copy a file located somewhere in the web to a local destination; It works quite well, but is there a faster method for that?? Here's my example: $handle = fopen ($WebFile, "r"); $outhandle=fopen ($LocalFile,"w"); while (!feof($handle)) { $buffer=fread($handle,4096); fputs($outhandle,$buffer); } fclose($handle); fclose($outhandle); http://www.php.net/manual/en/function.fopen.php

« previous php.notes (#9928) next »