php - How to pass more than one argv variable using add slashes? -
i wondered right syntax passing more 1 variable using add slashes? tried many variation until now:
exec('php email.php "'.addslashes($body).'"' . "'.addslashes($msg).'"'); exec('php email.php "'.addslashes($body).'"' + "'.addslashes($msg).'"');  exec('php email.php "'.addslashes($body).'"' & "'.addslashes($msg).'"');  exec('php email.php "'.addslashes($body, $msg).'"''); i have check example passing 1 argv , it's working fine:
exec('php email.php "'.addslashes($body).'"'); ------------ after comments -----------
the php email.php waiting in $argv 2 inputs in order run right. therefore main issue how pass him in 1 time 2 parameters: $body & $msg let if ran web page this:
www.mydomain/email.php?body=value1&msg=value2  
 
  
Comments
Post a Comment