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