<?php
// Define MySQL database connection parameters
$host = 'localhost';
$username = 'root';
$password = '';
$database = 'thahaayaa';

// Define backup file path
$backupFile = 'backup.sql';

// Execute mysqldump command
/*$command = "mysqldump -h $host -u $username -p$password $database > $backupFile";
system($command);*/
exec("mysqldump -h $host -u $username -p$password $database > $backupFile");

?>
