php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26023 System Don't Work
Submitted: 2003-10-28 17:32 UTC Modified: 2003-10-29 19:56 UTC
From: opc at andired dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: Red Hat 9.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: opc at andired dot net
New email:
PHP Version: OS:

 

 [2003-10-28 17:32 UTC] 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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-29 19:56 UTC] iliaa@php.net
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 http://www.php.net/support.php 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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC