: ok im using part of my site as php i have the code i need but its not working i have one page saved as downloads.php and i have a uploader only the admin can use saved as admin.php but on the downloads page it has directories and the link i have in the source to get to the directory is downloads.php?dir=/scripts if i was to click that what do i have to save the page as that is the script directory?
:
Like Manning, no offense, but could you reword "what do i have to save the page as that is the script directory?"
if you mean how to download the file, just do this.
<?php
if ($_POST['file']="blah.exe") {
header("Location: http://www.blahblah.com/files/blah.exe");
exit()
}
etc...
?>