ainoy31 Posted June 6, 2007 Share Posted June 6, 2007 Does anymore know of a good tutorial in regards to downloading files from mysql database via php? I have search the web and there is one but it displays all the files. I just want to be able to choose which file to download. thx. AM Link to comment https://forums.phpfreaks.com/topic/54423-download-files-from-mysql/ Share on other sites More sharing options...
trq Posted June 6, 2007 Share Posted June 6, 2007 Can you explain what you mean exactly? Are your files somehow stored within the database or just there filepath? There is a tutorial in the FAQ/Code Snippet forum which covers forcing a download. Link to comment https://forums.phpfreaks.com/topic/54423-download-files-from-mysql/#findComment-269162 Share on other sites More sharing options...
ainoy31 Posted June 6, 2007 Author Share Posted June 6, 2007 I have a form that allows an upload of a file to the database. Also, I like to have the option to download the files from my database to the desktop. Hope this helps. AM Link to comment https://forums.phpfreaks.com/topic/54423-download-files-from-mysql/#findComment-269165 Share on other sites More sharing options...
trq Posted June 6, 2007 Share Posted June 6, 2007 Its pretty unusual to save your actual files to the database, you would normally store the files on disk, and the location in the database. Sorry, just to confirm. Are the actual files stored in the database? Link to comment https://forums.phpfreaks.com/topic/54423-download-files-from-mysql/#findComment-269167 Share on other sites More sharing options...
ainoy31 Posted June 6, 2007 Author Share Posted June 6, 2007 I do not get what you are saying. Can you explain to me about the saving the file to a disk and then the location in the database? My interpretation of this is that I save the actual file to a disk and then have the location of the file in a database? Link to comment https://forums.phpfreaks.com/topic/54423-download-files-from-mysql/#findComment-269174 Share on other sites More sharing options...
trq Posted June 6, 2007 Share Posted June 6, 2007 I do not get what you are saying. Ditto. Yes. Im asking you wether your file is actually stored within a database table (unusual) or in the filesystem (disk) with only the files location saved in the database. Either way... the link I gave you should be able to help you out. Link to comment https://forums.phpfreaks.com/topic/54423-download-files-from-mysql/#findComment-269176 Share on other sites More sharing options...
ainoy31 Posted June 6, 2007 Author Share Posted June 6, 2007 The link given is no help. I do not want a force download. I am still trying to see why you think saving the actual file to the database is unusual. I guess I will venture somewhere else and figure it out. Link to comment https://forums.phpfreaks.com/topic/54423-download-files-from-mysql/#findComment-269180 Share on other sites More sharing options...
ainoy31 Posted June 6, 2007 Author Share Posted June 6, 2007 Ignore the last posting. I understand what you are talking about. Much appreciation! Link to comment https://forums.phpfreaks.com/topic/54423-download-files-from-mysql/#findComment-269202 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.