Hi friends following error while i tried zip in php
Fatal error: Class 'ZIPARCHIVE' not found in C:\Program Files\xampp\htdocs\testing1\zip2.php on line 3
My coding
<?php
if($backup = new ZipArchive()) {
if($backup->open($zip, ZIPARCHIVE::OVERWRITE) === true) {
$backup->addFile($file['C:\Program Files\xampp\mysql\data\sts'], $file['C:\Documents and Settings\Administrator\Desktop\k.zip']);
if(($count++) == 200) { // the file descriptor limit
$backup->close();
if($backup = new ZipArchive()) {
$backup->open($zip);
$count = 0;
}
}
}
$backup->close();
}
?>
Fatal error: Class 'ZIPARCHIVE' not found in C:\Program Files\xampp\htdocs\testing1\zip2.php on line 3
My coding
<?php
if($backup = new ZipArchive()) {
if($backup->open($zip, ZIPARCHIVE::OVERWRITE) === true) {
$backup->addFile($file['C:\Program Files\xampp\mysql\data\sts'], $file['C:\Documents and Settings\Administrator\Desktop\k.zip']);
if(($count++) == 200) { // the file descriptor limit
$backup->close();
if($backup = new ZipArchive()) {
$backup->open($zip);
$count = 0;
}
}
}
$backup->close();
}
?>