>But if system() thinks it is a success because the command executed, even
>though MySQL returns an internal error on the command line, why is'nt the
>last line of the MySQL error message stored in the variable as the system()
>manual suggests it should be when system() thinks it is a success?
*MAYBE* system() only "catches" stdout, and not stderr...
Though I doubt it.
Is there a blank line at the end of the MySQL error output when you do it
wrong in the shell?
Use the exec() I just posted and get *ALL* your output, *AND* the actual OS
error (or 0) code returned.
Like Music? http://l-i-e.com/artists.htm
Off-Topic: What is the moral equivalent of 'cat' in Windows?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php