View Single Post
Old 01-14-2008, 10:01 PM   #2 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

Hi Gareth,

Completely un-tested, but something like the following should do the trick

PHP Code:
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename="backup.sql"');
readfile($backupFile); 
That should popup a download dialouge (default name of backup.sql - might want to change that to include the date or something).

Alan.

Last edited by Alan @ CIT : 01-14-2008 at 10:04 PM. Reason: Added more info
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote