php zip problem

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
flyankur
Forum Newbie
Posts: 1
Joined: Sat Nov 15, 2008 3:30 am

php zip problem

Post by flyankur »

i am trying to zip some files using on server using php_zip.dll ( php zip) by addFile() function. The problem i am facing is when i give addFile() funtion the arguments of the files added to the ziparchive, the argument has "path" like

"/xampp/htdocs/ads.txt" then the ziparchive is like

/xammp/htdocs/ads.txt

rather then just containing ads.txt only.

how to stop making these folders and directly store the file in archive

Also i have files at different places on server i want to zip. then numerous folder will be made. Any help
Edit/Delete Message
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: php zip problem

Post by Eran »

Post Reply