$maxband) { $location = "http://$mirror/$file"; } else { $location = "http://$server/$file"; } // Test Method echo "
$server limit is $maxband bytes. Current bandwidth is $bs.
"; echo "Sending you to $location.
"; // Method 1: Send them directly to the file. Good for files. // header("Location: $location"); // Method 2: Embed the path as text (in an IMG tag, etc). // To use, where you'd stick the source, call PHP with the following code: // readfile("http://path.com/to/load.php?sn=file"); // echo $location; ?>