I'm trying this script under IIS 5.1 with php 5 and mysql latest stable release :
<?php
ob_start();
exec("mysqldump -u root -password=123456 mydatabase ");
//if i use system() instead of exec() it will warining me Unable to Fork??? (seems it doesn't find the program)
//so i tryed to update environment Variable PATH with Mysldump location
//but nothing changed
$dump = ob_get_contents();
echo $dump;
ob_end_clean();
//The database dump now exists in the $dump variable... write it to a file using...
$fp = fopen("dump.sql", "w");
fputs($fp, $dump);
fclose($fp);
?>
it seems correct but in dump.sql i find a an empty file.... :bemused:
can u help me pls?