PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a page that redirct user to downlod file but download dsnt start automatically .
header("Redirect: $_GET['file']);
I have given link i.e if download dsnt start auto...... click here .. but i want file download to start automatically .Plz tell me how 2 solve this prob .
thanks
Correction on Deemo's: header("Location: {$_GET['file']}") ... however, I'd suggest using [php_man]readfile[/php_man]() the download script.. (so people have a harder time getting the actual location of the file. Which helps your counter stay accurate by preventing hot-linking)