Re: difference between copy and strem_copy

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

 



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





[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