Hi,
I want to copy a file to my server from my other server. Let us say the file stored on http://www.myfileserver.com and I am running my script at http://www.myscriptserver.com and I want to copy the file to http://www.myscriptserver.com/file
I am trying to run this script and it fails to copy the file. Is there something wrong? Thak you for your time.
<html>
<head>
<title></title>
</head>
<body bgcolor="#FFFFFF">
<?
$copy_from="http://www.myfileserver.com/file.swf";
$copy_to="file/file.swf";
if ( !@copy($copy_from, $copy_to) ) {
$fileerror="failed to copy file...";
}
if($fileerror) {
echo "FILE ERROR: $fileerror";
} else {
echo "File Successfully Copied!";
}
?>
</body>
</html>