note 124283 added to book.exec

From: Date: Thu, 10 Oct 2019 14:47:25 +0000
Subject: note 124283 added to book.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-212571@lists.php.net to get a copy of this message
Similar to these functions, there is also the backtick ("back-tick") execution operator: https://www.php.net/manual/en/language.operators.execution.php <?php $output = ls -al; echo "<pre>$output</pre>"; ?> This operator runs the command given inside the backticks, and supports string interpolation just like double quotes: <?php $dir = addcslashes(sys_get_tmp_dir(), '"'); echo ls "{$dir}"; ?> ---- Server IP: 208.43.231.9 Probable Submitter: 82.199.157.54 (proxied: 107.223.187.41) ---- Manual Page -- http://php.net/manual/en/book.exec.php Edit -- https://master.php.net/note/edit/124283 Del: integrated -- https://master.php.net/note/delete/124283/integrated Del: useless -- https://master.php.net/note/delete/124283/useless Del: bad code -- https://master.php.net/note/delete/124283/bad+code Del: spam -- https://master.php.net/note/delete/124283/spam Del: non-english -- https://master.php.net/note/delete/124283/non-english Del: in docs -- https://master.php.net/note/delete/124283/in+docs Del: other reasons-- https://master.php.net/note/delete/124283 Reject -- https://master.php.net/note/reject/124283 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#212571) next »