[PHP TUT] UPLOADING FILES FROM ANOTHER SERVER TO YOUR DIRECTORY

Hi all,

Download files directly to your directory without stress or consumption of Bandwidth, just copy the source code and save then, then run!

:)

 <?php  
if(isset($_POST['link']))
{
if(!$_POST['link'])
{
die('Empty Link');
}
elseif(!$_POST['dir'])
{
die('Empty Dir');
}
else
{
copy($_POST['link'],$_POST['dir'])or die( "Error during upload, Try again later");
}
}
?>
<form action="" method="post">
Source Link<small>(eg. http://yourlink.com/file.exe)</small><br/><input type="text" name="link" placeholder="Source"/><br/>
Destination Folder in your directory with filename<small>(EG /downloaded/file.exe)</small><br/><input type="text" name="dir" placeholder="Destination Folder"/><br/>
<input type="submit" value="Submit"/></form>
<center><b>Powered by DON JAJO (<a href="http://2netlodge.com">2NETLODGE</a>)</b></center>
Posted in: