I am looking to call a shell script from php and pass input parameters .i am not prolific with php ,but i tried using shell_exec function ,still not able to .
<?php
$a = "www.google.com";
echo shell_exec('sh test9.sh' , "$a");
?>
shell file is
#!/bin/sh
echo $a
shell_execwill besh test9.shwww.google.com. Might want to make sure you include a space in there.