Bug #12990 Updated: Problems with system/exec after upgrade

From: Date: Tue, 28 Aug 2001 08:51:04 +0000
Subject: Bug #12990 Updated: Problems with system/exec after upgrade
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64477@lists.php.net to get a copy of this message
ID: 12990 Updated by: lyric Reported By: daniel@eldata.se Status: Open Old Bug Type: Website problem Bug Type: *Directory/Filesystem functions Operating System: Redhat 7.1 PHP Version: 4.0.6 New Comment: What does $cmd actually return? system() returns the last line of output from the command, which will evaluate to false for things like "0" or "". Try using exec() and printing the output from there if you are unsure. Previous Comments: ------------------------------------------------------------------------ [2001-08-28 02:42:30] daniel@eldata.se Hello Then we made a upgrade från Redhat 7.0 and PHP 404 this syntax stopped to work. It keep tellning me that the command failed. if(system($cmd)) $Msg.="The command was successful."; else $Msg.="Nope it didnt worked."; ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12990&edit=1

« previous php.dev (#64477) next »