I want to extract a zip archive file in server.
In my local system the code is running and working OK.
But in my host in internet the code was not working OK.
The problem raise because the directory was make in server dos not have full access (777).
Main directory create OK. But sub directory and file in main directory dos not create OK
my code is
(Note : I us pclzip.lib.php function archive):
<?php
include('pclzip.lib.php');
//zip file to extract
$archive = new PclZip('sef.zip');
//extract to a folder called newdir
echo "safa<br>";
if ($archive->extract() == 0)
{
//failed
die("Error : ".$archive->errorInfo(true));
}
echo "Successfully extracted files";
?>
Edited by Jaan, 30 January 2010 - 04:33 AM.
Please use code tags when you are posting your codes!


Sign In
Create Account

Back to top









