Post by Negin Nickparsawhat 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