My PHP script outputs the contents of the .sql file after it was called by a POST request from my Delphi Desktop client.
Here's what happens:
- My desktop client sends a POST request to my PHP Script.
- the script then calls
mysqldump and generates a file - xdb_backup.sql - script, then
include "xdb_backup.sql"; , which will print and return to its Desktop Client, and then deletes the SQL file.
The problem is that the size of the SQL file can vary (for testing, I generated a file with a size of 6 mb). I would like my desktop client to be able to show progress, however the PHP script does not disclose its size, so I am not assigned the value of Progressbar.Max .
How can I make my PHP script so that the client knows how big it is before the whole thing is over ?
Note. Downloading the SQL file is not an option, as the script should destroy it. :)
source share