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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
2 + 47 = ?
Subscribe to this entry?

 
 [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: Sat May 04 17:01:33 2024 UTC