calkette1 Posted June 3, 2008 Share Posted June 3, 2008 This seems like it would be easy, but I can't quite figure out the best way to do it. I have a download repository of files named w/ index values stored in a MySQL table. These files reside on a separate logical FTP server (actually one and the same, but hackers need not know where these files are stored). I want to be able to FTP get a file, rename it to its true filename (also stored in the db), then pass it through as a HTTP download. I'm not sure quite how to do this efficiently. I'm sure this will involve a temp file, but that sounds kinda silly if I can just work with a buffered memory stream. Can't create a pointer on a memory location... or can you? Assuming $download_id is the index value/FTP file name, and $download_name is the true filename as retrieved from the db, how would I best go about this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.