Skip to content
ifsnop edited this page Sep 11, 2014 · 6 revisions

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

<?php
    include_once(dirname(__FILE__) . '/mysqldump-php/src/Ifsnop/Mysqldump/Mysqldump.php');
    $dump = new Ifsnop\Mysqldump\Mysqldump( 'database', 'username', 'password');
    dump->start('php://output');
?>
Clone this wiki locally