Hi-
I have the following command scripted in a php file that worked perfectly on a previous host, but is now not working on a new host (who claims it should work):
echo exec("htpasswd -b /home/ssgdc/public_html/client/.htpasswd " . $username . " " . $password);
it didn't work from the command line, since apparently htpasswd wasn't in my path, so i changed it to:
echo exec("/usr/local/apache/bin/htpasswd -c -b /home/ssgdc/public_html/client/.htpasswd " . $username . " " . $password);
that worked on the command line. Neither work in the actual script.
I've tried multiple iterations of perms on the .htpasswd file w/ no luck. The users/pws that were in the .htpasswd file when i moved the site to this host still work fine.
Any ideas what it could be? anything in php.ini or something like that?
thanks.
I have the following command scripted in a php file that worked perfectly on a previous host, but is now not working on a new host (who claims it should work):
echo exec("htpasswd -b /home/ssgdc/public_html/client/.htpasswd " . $username . " " . $password);
it didn't work from the command line, since apparently htpasswd wasn't in my path, so i changed it to:
echo exec("/usr/local/apache/bin/htpasswd -c -b /home/ssgdc/public_html/client/.htpasswd " . $username . " " . $password);
that worked on the command line. Neither work in the actual script.
I've tried multiple iterations of perms on the .htpasswd file w/ no luck. The users/pws that were in the .htpasswd file when i moved the site to this host still work fine.
Any ideas what it could be? anything in php.ini or something like that?
thanks.