note 12864 deleted from function.exec by danbrown

From: Date: Sun, 04 Jan 2009 16:39:37 +0000
Subject: note 12864 deleted from function.exec by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148826@lists.php.net to get a copy of this message
Note Submitter: auriane at bigfoot dot com ---- If you want to use the exec command to change passwords in a .htaccess file, it's possible, but do not use the direct exec command, that didn't work for me. What works perfectly; (on Linux) $Htuserfile = "/home/userssite"; $Pathhtpasswd = "/usr/local/apache/bin/htpasswd -b"; $test=shell_exec($Pathhtpasswd." ".$Htuserfile." ".strtolower($Login_Name)." $Password");

« previous php.notes (#148826) next »