note 80299 added to function.escapeshellcmd

From: Date: Tue, 08 Jan 2008 22:21:36 +0000
Subject: note 80299 added to function.escapeshellcmd
Groups: php.notes 
Request: Send a blank email to php-notes+get-134956@lists.php.net to get a copy of this message
To extract an archive file to a specific folder 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 ---- Server IP: 202.89.58.1 Probable Submitter: 202.78.240.7 ---- Manual Page -- http://www.php.net/manual/en/function.escapeshellcmd.php Edit -- https://master.php.net/note/edit/80299 Del: integrated -- https://master.php.net/note/delete/80299/integrated Del: useless -- https://master.php.net/note/delete/80299/useless Del: bad code -- https://master.php.net/note/delete/80299/bad+code Del: spam -- https://master.php.net/note/delete/80299/spam Del: non-english -- https://master.php.net/note/delete/80299/non-english Del: in docs -- https://master.php.net/note/delete/80299/in+docs Del: other reasons-- https://master.php.net/note/delete/80299 Reject -- https://master.php.net/note/reject/80299 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134956) next »