PDA

View Full Version : download script


sabret00the
09-13-2003, 01:03 PM
ok got a very simple mirror script as shown below<?php


$rand[0]="http://mirror1.com";
$rand[1]="http://mirror2.com";
$rand[2]="http://mirror3.com";
$rand[3]="http://mirror4.com";

$entry = rand(0,3);
$random = $rand[$entry];

Header ("Location: $random");

?>
but what i'm wondering it what would i have to do to hide the download source from the leechers?

and if there anyway i can count the downloads without using the database?

assassingod
09-13-2003, 06:04 PM
I can't think of a way without using a database.

But if you end up using a DB, take a look at the define function (http://uk2.php.net/manual/en/function.define.php)