note 88379 deleted from function.exec by danbrown
| From: | danbrown@php.net | Date: | Wed, 21 Jan 2009 18:09:13 +0000 |
| Subject: | note 88379 deleted from function.exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149608@lists.php.net to get a copy of this message | ||
Note Submitter: landavia81 at gmail dot com
----
for unknown reason.. many programer has problem with php_rar (in windows).. i came up with this ...
and it work. But this is only replace for the Php_rar not Php_rar it self
_______________________________
<?php
$appRar ="C:/Program Files/WinRAR/unrar.exe";
#this is false..
$appRar = '"C:\Program Files\WinRAR\unrar.exe"';
#change this
$opt="e";
$target="1.rar";
$do ="$appRar $opt $target";
exec($do,$aOut);
print_r($aOut);
?>
-------------------------------------------------
For windows user: try using bat file for test. And try to explore and test more case like the file
is already avaible and soon.