sangoku Posted March 28, 2010 Share Posted March 28, 2010 I saw it many times on many sites (anime freak sites) that you have the possibility to see the images that are in an archive.... So I am wondering how do they do it? Do they read directly from archives? Do they extract the archive and then let you view the images? Or do they on demand do an extraction from the archive and then lets you view it? and what is the best for the performance of the function? What is the best practice here????? Quote Link to comment https://forums.phpfreaks.com/topic/196808-how-to-view-images-directly-from-zip-rar-archives/ Share on other sites More sharing options...
GetPutDelete Posted March 28, 2010 Share Posted March 28, 2010 They probably have the script un-Zip the archive. http://php.net/manual/en/book.zip.php Quote Link to comment https://forums.phpfreaks.com/topic/196808-how-to-view-images-directly-from-zip-rar-archives/#findComment-1033150 Share on other sites More sharing options...
sangoku Posted March 28, 2010 Author Share Posted March 28, 2010 BUT you can download the file as a archive to!!! which presents the folowing problem what is faster extraxt the files and again zip them as someone requests them or keep the file unextrated and extraxt only on demand OR have both versions.... Quote Link to comment https://forums.phpfreaks.com/topic/196808-how-to-view-images-directly-from-zip-rar-archives/#findComment-1033157 Share on other sites More sharing options...
GetPutDelete Posted March 28, 2010 Share Posted March 28, 2010 If memory is not an issue extract the ZIP file the first time round and then keep both copies, it will pay off in the long run if you have a busy site. Quote Link to comment https://forums.phpfreaks.com/topic/196808-how-to-view-images-directly-from-zip-rar-archives/#findComment-1033173 Share on other sites More sharing options...
sangoku Posted March 28, 2010 Author Share Posted March 28, 2010 I think i will implement both possibility's... only need to find a way how to do it XD Quote Link to comment https://forums.phpfreaks.com/topic/196808-how-to-view-images-directly-from-zip-rar-archives/#findComment-1033250 Share on other sites More sharing options...
GetPutDelete Posted March 28, 2010 Share Posted March 28, 2010 Take a look at the zip library I sent you. Quote Link to comment https://forums.phpfreaks.com/topic/196808-how-to-view-images-directly-from-zip-rar-archives/#findComment-1033251 Share on other sites More sharing options...
sangoku Posted March 29, 2010 Author Share Posted March 29, 2010 hm what and where? I dont have any new messages? where did you send it? Quote Link to comment https://forums.phpfreaks.com/topic/196808-how-to-view-images-directly-from-zip-rar-archives/#findComment-1033391 Share on other sites More sharing options...
GetPutDelete Posted March 29, 2010 Share Posted March 29, 2010 Look at the link in my second post. Quote Link to comment https://forums.phpfreaks.com/topic/196808-how-to-view-images-directly-from-zip-rar-archives/#findComment-1033481 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.