Saved X
Google login
SignUp with Email
X

Php copy file

theindreshverma ( Edited  Sep 01, 12:13 am )
Login

<?php
$file = 'http://example.com/image.jpg';
$newfile = '/img/new_image.jpg';

if ( copy($file, $newfile) ) {
   echo "Copy success!";
}
else{
   echo "Copy failed.";
}
?>

Sourcecode Tags

More Sourcecodes

More Sourcecodes