Skip to content

Redirecting to stdout

diego torres edited this page Aug 1, 2015 · 4 revisions

How to get output to stdout, so it can be redirected:

    include_once(dirname(__FILE__) . '/mysqldump-php/src/Ifsnop/Mysqldump/Mysqldump.php');
    $dump = new Ifsnop\Mysqldump\Mysqldump('mysql:host=localhost;dbname=testdb', 'username', 'password');
    $dump->start('php://output');
Clone this wiki locally