From: opc at andired dot net
Operating system: Red Hat 9.0
PHP version: Irrelevant
PHP Bug Type: *General Issues
Bug description: System Don't Work

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

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 bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]
Floating point limitations: [url][/url]