Hi,
Yes. You just use the $db_host, $db_user, $db_password, $db_name for your system.
The current script I have set up to create a file to the user:
[/code]
// We create a file
header("Content-type: application/txt");
// With date and name
$filename = "Database_backup_".date("F_j_Y").".txt";
header("Content-Disposition: attachment; filename=$filename");
// And execute the script
echo get_structure($db_host, $db_user, $db_password, $db_name);
exit();
[/code]
but of course you could use the fopen function to create a new file, and write the data into that file with fwrite, I believe.
Creating a script which reads it from the server should also work.
I did not do this,. because I have it as a security against hackers too: I download the database from my site weekly, and store them locally. Thjis way, if the server is invaded, I still have clean backups.