hi,
i am trying to create code that will prompt the user to download.
below is the code i am using:
..
..
..
$content = datadump ("clients");
$file_name = "MySQL_Database_Backup.sql";
Header("Content-type: application/octet-stream");
Header("Content-Disposition: attachment; filename=$file_name");
'datadunp' is simply a function that i have created to generate a sql
string from my databases and return the value into $content.
unfortunately, when i run this code from the server, it doesnt do
anything. i have noticed that i am gettin errors when i place the code
with the header function anywhere but the top of the document but even
without error, it isnt doin anything.
btw, i got this code from a web page
(http://www.devpapers.com/article/55) and modified it as i dont really
have a great knowledge of header functions in php. any help would be
great. cheers
burnsy