Maciek Sokolewicz wrote: > 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. However, depending on the configuration the following may work fine: copy('http://php.net/', './php.net.html'); -- Christoph M. Becker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php