PHP Remote File Upload * Direct Server to Server Transfer *
Create a new html file with the following source
HTML Code:
<form action="dl.php" method="post"><br> <tr><td>URL:</td><td><input type="text" name="url"><br> </td></tr><tr><td>Path:</td><td><input type="text" name="path"></td></tr><br> <tr><td colspan="2" align="center"><br><input type="submit"/></td></tr></table></form></p><br> </form>
Create a PHP file with the following source and name it as dl.php
PHP Code:
<?php
$_POST["url"];
$_POST["path"];
$readf = fopen($_POST["url"], "r");
$writef = fopen($_POST["path"] . basename($file), "w");
while(!feof($file)) fwrite($writef, fread($readf, 1), 1);
fclose($readf);
fclose($writef);
?>
run the html file u created and now you will be able to remote upload
(Don't remember the exact source as i got it from my old backup files)
but will work OK !!!