flyankur Posted November 15, 2008 Share Posted November 15, 2008 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 Link to comment https://forums.phpfreaks.com/topic/132806-php-zip-problem/ Share on other sites More sharing options...
ratcateme Posted November 15, 2008 Share Posted November 15, 2008 $zip->addFile('/xammp/htdocs/ads.txt, 'ads.txt'); Scott. Link to comment https://forums.phpfreaks.com/topic/132806-php-zip-problem/#findComment-690690 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.