note 80298 deleted from function.escapeshellcmd by nlopess

From: Date: Tue, 08 Jan 2008 22:38:09 +0000
Subject: note 80298 deleted from function.escapeshellcmd by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134957@lists.php.net to get a copy of this message
Note Submitter: davidwhthomas ---- To extract an archive file to a specific using exec() : <?php $result = exec(escapeshellcmd("tar -xvvf /path/to/archive.tar -C /path/to/extract/to/")); ?> escapeshellcmd() is used here because I am getting the file path via user input / upload. DT

« previous php.notes (#134957) next »