Welcome Guest, Not a member yet? Register   Sign In
How to read file inside zip
#1

[eluser]yagie[/eluser]
Hi all..

I have an application for uploading XML files and read it.
Sometimes, if the size of xml file is big, it will be zipped.

For extracting the file, I'm using unzip library and it works well..


But I don't know how to read the file if it is zipped..

Can somebody help me please?

Thanks...
#2

[eluser]CI_avatar[/eluser]
use opendir and readdir php functions.

use opendir('location where you extract the zip file') to set your current open directory
the use readdir to get the list of files inside that directory.
#3

[eluser]yagie[/eluser]
Thanks a lot CI_avatar for the reply..

I'm prety new with CI..

I'll try that..
Anyway, can I get the filename inside the zip file? so I can read the file based on the filename..

Thanks..




Theme © iAndrew 2016 - Forum software by © MyBB