View Single Post
Old 07-21-2009, 10:37 AM   #18
feldon34
Forum Administrator
 
feldon34's Avatar
 
Join Date: Dec 2000

Location: Rock Hill, SC
Posts: 10,938
You can create a file named download.php with these contents:

PHP Code:
<?php
$beta 
TRUE;
if (
$beta === TRUE) { header("Location: http://www.fish-byte.com/MA3Beta.zip"); }
if (
$beta === FALSE) { header("Location: https://prolific.s3.amazonaws.com/MarineAquarium3/Windows/MarineAquarium3.exe"); }
exit;
?>
Set $beta = TRUE if you want people to download from Fish-Byte.com.
Set $beta = FALSE if you want people to download it from SereneScreen.

Then no matter what, if they visit http://www.fish-byte.com/download.php, they'll get redirected to download the correct file.
"Journalism is printing what someone else does not want printed. Everything else is public relations." - George Orwell
"If voting changed anything, they'd make it illegal." - Emma Goldman
feldon34 is offline   Reply With Quote