I am writing a script that will regularly update a database from a local server to an online server.
The backup file is created locally but the online database is only partially filled.
I am calling mysqldump.exe and mysql.exe with exec().
It works OK within the intranet but there seems to be a timeout problem online.
Is it because the connection is closing before mysql.exe has finished.
Will using mysql_pconnect resolve this?
Should I be using system() instead of exec()?
Will somebody help me?