Yup thats what i tryed to do, didn´t work though.
this is what i tryed to do
<?php
$command = "unzip -n /virtual/area51/update.zip -d /virtual/area51/test.zip";
exec($command, $result, $rval);
for($i =0; $i < sizeof($result); $i++){
echo"$result[$i]<br>";
}
?>
it returns
Archive: /virtual/area51/test.zip
and if I dont specify anything it wont return anything 😉
funny thing is, that this little script works with some other commands i tested(e.g. ping).
and the command syntax shouldnt be wrong since i did that command on the shell and it worked fine...
first i thought (oh its just retuning one row as system does afterall, but when i checked i saw it hadnt unzipped anything.
i also tryed both 777:ing the file and chowning it to the apache user...
personally this is once again one of those anoying bugs that haunt you when your in a hurry for a dead-line...
Anyway, any help would be grately appreciated. Or any other versions how to zip and unzip ( dont want to install any extra libs, but il do it if il have to... tryed pclzip but the stuff i zipped became unreadable for winzip, because it was corrupted or something)
but as i said... i need help with this one 🙂
thanks in advance:
Gillis Danielsen