note 124283 deleted from book.exec by cmb

From: Date: Tue, 28 Jun 2022 12:01:37 +0000
Subject: note 124283 deleted from book.exec by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218657@lists.php.net to get a copy of this message
Note Submitter: bishop at php dot net ---- 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}"; ?>

« previous php.notes (#218657) next »