Hi,
I want to run a linux command through a PHP program.
This is what i am trying -
$stat = htpasswd -bm /usr/local/etc/httpd/users ".$name." ".$newpass;
exec($stat);
where $name & $newpass are coming from the form page.
I have tried the same with passthru, escapeshellcmd & system. But it doesn't seem to work. Worst part is, i am not getting any error message on the screen also.
What should i do ?
Thanks,
Karthik.