Hello,
I have rar extensions installed on php using xampp go-pear
It shown in php info that rar is enabled.
My code is following
<?php
$rar_file = rar_open('htdocs.rar') or die("Can't open Rar archive");
$entries = rar_list($rar_file);
foreach ($entries as $entry) {
echo 'Filename: ' . $entry->getName() . "\n";
echo 'Packed size: ' . $entry->getPackedSize() . "\n";
echo 'Unpacked size: ' . $entry->getUnpackedSize() . "\n";
$entry->extract('C:/xampp/htdocs');
}
rar_close($rar_file);
?>
rar_open causes apache to crash. if i comment out rar_open, apache wont crash and run as normal.
Anyone know what make it crash?
Thanks