выдержка из страницы ссылка на которую дана выше:
"Returns the last line of the command output on success, and FALSE on failure. "
и еще
"system() function doesn't return a string value, if you want to assign the
output of a system command, try using:
$a = `/bin/ls -a`;
note the ` is a backtick, not a single quote"