ID: 26023
Updated by: [email]iliaaphp.net[/email]
Reported By: opc at andired dot net
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Red Hat 9.0
PHP Version: Irrelevant
New Comment:

Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit [url]http://www.php.net/support.php[/url] as this bug system is not the
appropriate forum for asking support questions.

Thank you for your interest in PHP.

This is likely to be htpasswd problem.


Previous Comments:
------------------------------------------------------------------------

[2003-10-28 17:32:08] opc at andired dot net

Description:
------------
I use the next command
+---------------
if (system("/usr/bin/htpasswd -b /home/var/key_file $user1 $clave1"))
{
echo "Update File"; } else {
echo "Error !!"; }
+-----------------
This work very good in other system (RedHat 7.2), but don't understand
why don't work in my new server Linux Redhat ver 9.0 with PHP 4.2.2 and
Apache 2.0.

Reproduce code:
---------------
if (system("/usr/bin/htpasswd -b /home/var/key_file $user1 $clave1"))
{
echo "Update File"; } else {
echo "Error !!"; }

Expected result:
----------------
Print in the screen "Update File"

Actual result:
--------------
Print in the screen "Error"


------------------------------------------------------------------------


--
Edit this bug report at [url]http://bugs.php.net/?id=26023&edit=1[/url]