سرچ کردم چرت و پرت میاره. همش Anti leech script بود! با سوییچ anti- هم که سرچ کردم چیز به درد بخوری پیدا نکرد.leech script رو گوگل كن خيلي زياده يه فارسي هم بود
نخورد سی پنلم.
شما php بلدین ولی ما که بلد نیستیم دنبال اسکریپت آماده باید بگردیم. میشه همین سه خط را اینجا بذارید؟!لول !
خوب از تابع copy تو php استفاده کنین !! در حد ۳ خط php میشه فایل باهاش دانلود کرد !
<?php
define('BUFSIZ', 4095);
$url = 'http://www.techtipsmaster.com/alexa-top-ranks.csv.zip';
$rfile = fopen($url, 'r');
$lfile = fopen(basename($url), 'w');
while(!feof($rfile))
fwrite($lfile, fread($rfile, BUFSIZ), BUFSIZ);
fclose($rfile);
fclose($lfile);
?>
<?php
copy($_GET['url'] , $_GET['des']);
?>
http://site.com/copy.php?url=http://www.google.com/file.zip&des=test2.zip
<?php
if (isset($_POST['url'])) {
$url=$_POST['url'];
define('BUFSIZ', 4095);
$rfile = fopen($url, 'r');
$lfile = fopen(basename($url), 'w');
while(!feof($rfile))
fwrite($lfile, fread($rfile, BUFSIZ), BUFSIZ);
fclose($rfile);
fclose($lfile);
}
?>
<form method="post" action="">
<input type="text" name="url"><input type="submit" value="dl">
</form>
دادش دستت حسابی درد نکنه. انقدر ثواب داره کار جوون مردم را راه میندازی (بلد بودن نمیخواد که !
حالا آدرس رو اینجوری بزن !کد:<?php copy($_GET['url'] , $_GET['des']); ?>
این میاد فایل test.zip رو از مسیر google.com/test.zip میخونه و به نام test2.zip ذخیره میکنه .'کد:http://site.com/copy.php?url=http://www.google.com/file.zip&des=test2.zip
اینم از اسکریپت خودت .
PHP:<?php if (isset($_POST['url'])) { $url=$_POST['url']; define('BUFSIZ', 4095); $rfile = fopen($url, 'r'); $lfile = fopen(basename($url), 'w'); while(!feof($rfile)) fwrite($lfile, fread($rfile, BUFSIZ), BUFSIZ); fclose($rfile); fclose($lfile); } ?> <form method="post" action=""> <input type="text" name="url"><input type="submit" value="dl"> </form>
نه یکی دیگه می خوام!