Re: difference between copy and strem_copy

From: Date: Wed, 01 Oct 2014 21:02:14 +0000
Subject: Re: difference between copy and strem_copy
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-323877@lists.php.net to get a copy of this message
On 1-10-2014 17:45, Negin Nickparsa wrote:
what is the difference in copying data from the file rather than a stream? stream_copy_to_stream — Copies data from one stream to another copy — Copies file
Well, simply put: copy - copies an actual SYSTEM file from one place to another. Note though that PHP just tells the system to copy it over. PHP itself does not read the data or do anything with it. stream_copy - takes a stream, which can be anything: file data, a tcp/ip connection, zipped data, etc. and copies everything it can read from the first stream to a 2nd stream. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com

« previous php.general (#323877) next »