Posted by Lucian Daniliuc in
Linux,
MySQL,
PHP on Jun 2nd, 2008 |
No Comments
Redirecting the output is useful everywhere, including in php.
By using `exec()` to import a .sql file into mysql, everything goes smoothly. Until you get some errors. Mysql sends the errors it encounters to stderr instead of stdout.
So… you get the command status 1 (something went bad), but no...