file path not removed
Brought to you by:
vblavet
$temp_dir = "/var/www/vhosts/websitename.co.nz/scheduled/temp/stemp/";
$file_path = "/home/ftparchive/photos.zip";
$archive = new PclZip($file_path);
if ($archive->create($temp_dir,PCLZIP_OPT_REMOVE_ALL_PATH) == 0)
{
... but in the zip file each file still shows a path value of: "stemp/"
Steve