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????? 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 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.... 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. 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 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. 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? 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. 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
Archived
This topic is now archived and is closed to further replies.