Page 1 of 1

http copy

Posted: Sun May 23, 2004 10:14 pm
by a_azarnoosh
Hi,

I'm beginner in PHP.
I want to copy a file like http://www.site1.com/example.file to my server.
How can I do it?
Is it "file upload method"?

Ali Azarnoosh

Posted: Mon May 24, 2004 12:38 am
by maqmus
if you do this:

Code: Select all

<?php
$my_copy = file("http://www.site1.com/example.file");
?>
you'll have a copy of it (an array), then you can save it.