Results 1 to 2 of 2
Dec 22, 2008, 02:32 #1
- Join Date
- Apr 2004
- 0 Post(s)
- 0 Thread(s)
ZipArchive not working properly...
Problem I am facing is extractTo( cannot run properly.
$zip = new ZipArchive;
if ($zip->open($MasterLocation) === TRUE)
$zip->extractTo($destination); ////error occur here
Warning: ZipArchive::extractTo() [function.ZipArchive-extractTo]: File exists in D:\inetpub\vhosts\domainname.com\httpdocs\r\api\fileAPI22-MY.php on line 27
it keep on saying file exists
hohoho folder is confirmed empty. But i dunno why the php keep on saying file exists....
line 27 is the extractTo($destination) line
is it due to php version? or php extract won't work properly in windows iis server, or need to set something in php configuration file?
Dec 23, 2008, 02:18 #2
I am not sure if it's going to work but doesn't hurt trying. Open up the folder properties for the folder 'hohoho' and remove the Read-Only tick off it.
I would also take a look at IIS Logs and PHP logs to further debug the issue.