Jump to content

[Searching] php_rar.dll version: 5.2.5


WebNuLL

Recommended Posts

  • 1 month later...

If by some chance you need an older version of a file, they are available on the php.net site - http://www.php.net/releases/

that's not work 4 me

i was install xampp and then using php_rar above.. i try this code

<?php
if(is_file('example.rar')==TRUE)
echo "ada file example.rar";
else
die("ngak ada filenya");

$rar_file = rar_open('example.rar');// or echo("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('rar/');
}

rar_close($rar_file);


?>

but the result

ada file example.rar
Warning: rar_list(): supplied argument is not a valid Rar resource in C:\aplikasi\xampp\htdocs\kerjaan\apbn\001tesRar.php on line 8

Warning: rar_list() [function.rar-list]: cannot find Rar file resource in C:\aplikasi\xampp\htdocs\kerjaan\apbn\001tesRar.php on line 8

Warning: Invalid argument supplied for foreach() in C:\aplikasi\xampp\htdocs\kerjaan\apbn\001tesRar.php on line 9

Warning: rar_close(): supplied argument is not a valid Rar resource in C:\aplikasi\xampp\htdocs\kerjaan\apbn\001tesRar.php on line 17

Warning: rar_close() [function.rar-close]: cannot find Rar file resource in C:\aplikasi\xampp\htdocs\kerjaan\apbn\001tesRar.php on line 17

if i tried using die in line 2

 

Can't open Rar archive

 

i tried using winrar 3.51 ???

failed using php_rar.. i use this

<?php
$appRar = '"C:\Program Files\WinRAR\unrar.exe"';
//"C:/Program Files/WinRARunrar.exe";     #change this
$target="1.rar";
//unrar e rar/1.rar
$do ="$appRar e $target";
exec("$appRar /?");
print_r($aOut);
exec($do,$aOut); 
print_r($aOut);

?>

read more on php help

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.