Welcome Guest, Not a member yet? Register   Sign In
Create a copy of file from another server
#1

hi,
how can i copy i file from another server ? i try with ;
Code:
$file->move($path,$name)

but have rename(): http wrapper does not support renaming
Reply
#2

PHP Code:
$url 'http://example.com/your_remote_file.jpg';
$path '/your_local_directory/';
$name 'your_local_file.jpg';
file_put_contents($path.$namefile_get_contents($url)); 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB