http copy

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
a_azarnoosh
Forum Newbie
Posts: 1
Joined: Sun May 23, 2004 10:14 pm

http copy

Post 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
User avatar
maqmus
Forum Commoner
Posts: 30
Joined: Mon Mar 08, 2004 1:10 pm

Post 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.
Post Reply