Page 1 of 1

Reading ZIP Files

Posted: Mon Mar 01, 2004 3:59 pm
by tstimple
QUESTION FROM NEWBIE>>>

From the PHP manual it says that in order to open ZIP files you need to install the ZZIPlib library by Guido Draheim.

1. I went to that link and it is unclear which file I need to download.
2. I am running from a hosted web server where I do not have root access to install or make changes to PHP.

Is this ZZIPlib like a "class" or and Include file that I can use? Or does it require install access??

Thanks,
-Tim

Posted: Mon Mar 01, 2004 5:45 pm
by ol4pr0

READING ZIP FILES

Posted: Mon Mar 01, 2004 8:51 pm
by tstimple
ol4pro,

Yes,
That is the same file I am talking about. However, this class only seems to allow CREATING a zip file, not READING an existing zip file.

Also, What does "--with-zip" mean?
Is this a setting in the php.ini file?
If so, Since I run on a hosted website, I do not have access to change this setting, do I?

--Tim

Posted: Tue Mar 02, 2004 2:56 am
by qads
"--with-zip" is one of config you can use to complie php on unix/linux systems, on windows, its just matter of uncommenting a line in php.ini and making sure the DLL is there lol...ah the simple life :lol:.

your hosted on someone else's server, you wont be able to recomplie php.

you could ask the host nicely though.

Posted: Tue Mar 02, 2004 3:01 am
by JayBird
run a phpinfo() script on your server and see if you have a section called "zlib".

If so, you can use the zip functions, if not, ask your service provider.

Mark