note 88379 added to function.exec
| From: | landavia81 at gmail dot com | Date: | Wed, 21 Jan 2009 18:02:53 +0000 |
| Subject: | note 88379 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149607@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 202.158.52.162
Probable Submitter: 118.137.53.250
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/88379
Del: integrated -- https://master.php.net/note/delete/88379/integrated
Del: useless -- https://master.php.net/note/delete/88379/useless
Del: bad code -- https://master.php.net/note/delete/88379/bad+code
Del: spam -- https://master.php.net/note/delete/88379/spam
Del: non-english -- https://master.php.net/note/delete/88379/non-english
Del: in docs -- https://master.php.net/note/delete/88379/in+docs
Del: other reasons-- https://master.php.net/note/delete/88379
Reject -- https://master.php.net/note/reject/88379
Search -- https://master.php.net/manage/user-notes.php