|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-29 19:56 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 21:00:01 2025 UTC |
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"