I'm a Intern for a IT company and I'm creating a software upgrade download panel for them and I everything was going great till I hit this one glitch. I couldn't have a user a define where they want to download. At first I tried to look for a solution that will let the user browse for the file within their page such as <input type="file" name="test"> but edited some how with javascript, active x, but there really was no good solution except use asp which I'm trying to stay away from. So I was wondering if anybody knows a way to have the user define the folder they want to download to by invoking some sort of SaveAs prompt or any way that is clear and easy that will return the string location such as "C:/windows/temp".
I'm using this pretty cleancut code for the get.
if (ftp_get($conn_id, "$LocalHarddrive", $filename, FTP_BINARY)) {
echo "Successfully downloaded CLICK HERE TO CLOSE";
} else {
echo "There was a problem please contact the server administrator\n";
}
Also would I be able to use the ftp wrapper and invoke it manually instead of that once I connect with the ftp functions? I'm trying to keep all the locations of the files and passwords protected.
I'm new to this site, and I'm hoping to become a active member. Thank you everybody for your time!