how to pass argument to call shell script in php.?

  • Thread starter Thread starter King
  • Start date Start date
K

King

Guest
i tried this in php file
<?php
exec("./first dirname");
?>

and in shell script called
var=$1
mkdir $var

when i issue "./first dirname" command then it is able to create folder called dirname but i want to do this via php file.

hope somebody help me.
thanks
 
Back
Top