note 80298 added to function.escapeshellcmd

From: Date: Tue, 08 Jan 2008 22:21:27 +0000
Subject: note 80298 added to function.escapeshellcmd
Groups: php.notes 
Request: Send a blank email to php-notes+get-134955@lists.php.net to get a copy of this message
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 ---- 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/80298 Del: integrated -- https://master.php.net/note/delete/80298/integrated Del: useless -- https://master.php.net/note/delete/80298/useless Del: bad code -- https://master.php.net/note/delete/80298/bad+code Del: spam -- https://master.php.net/note/delete/80298/spam Del: non-english -- https://master.php.net/note/delete/80298/non-english Del: in docs -- https://master.php.net/note/delete/80298/in+docs Del: other reasons-- https://master.php.net/note/delete/80298 Reject -- https://master.php.net/note/reject/80298 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134955) next »