Is the shell_exec or backstick(``) allow variables in it?
| From: | love jiangnan | Date: | Fri, 23 May 2003 19:00:39 +0000 |
| Subject: | Is the shell_exec or backstick(``) allow variables in it? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148806@lists.php.net to get a copy of this message | ||
For example
<?php
$out="output".$usrid.'.'.'tar';
$dir="afs/home/www/".$path.'.'.'txt';
$output[$usrid]=`tar $out $dir";
echo<pre>$output[$usrid]</pre>;
Does it work?
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com