Re: difference between copy and strem_copy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


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





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux