How to use php variable insisde system comand
<p>How do i use a php5 variable inside a system() call</p>

<p>$dir = '/etc/somedir';</p>

<p>eg system("ls $dir")</p>

<p>i think i'm missing something</p>

<p>ok sorry, i am actually passing a variable from a post
eg</p>

<p>$username = $_POST[username];</p>

<p>to a system call</p>

<p>system("processData --user $username --pass $password");</p>

<p>this isn't working, so i trivialised down to a simple
example</p>
