note 42138 deleted from function.exec by tomsommer

From: Date: Mon, 09 Aug 2004 23:32:49 +0000
Subject: note 42138 deleted from function.exec by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74359@lists.php.net to get a copy of this message
Note Submitter: taj@wildgardenseed.com ---- After tearing my hair out for eight hours, I finally figured out how to untar a file (yes, I know about fopen and sockets). You need to specify /bin/sh -c "command". For example: <?php exec('/bin/sh -c "/bin/tar -xzf /tmp/'.$filename.' install/desc-file install/info-file install/deps-file"'); ?> Note the quotes around the real command. Hope this helps somebody, --Taj

« previous php.notes (#74359) next »