Reading ZIP Files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tstimple
Forum Commoner
Posts: 53
Joined: Wed Jan 21, 2004 10:12 pm

Reading ZIP Files

Post 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
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

tstimple
Forum Commoner
Posts: 53
Joined: Wed Jan 21, 2004 10:12 pm

READING ZIP FILES

Post 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
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post 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.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
Post Reply