Page 1 of 1
Export data to user desktop
Posted: Fri Apr 25, 2008 11:57 pm
by Madhum
Can Someone send me the coding to export database data to the user's desktop.it's urgent.i have the coding.but it's exporting data to my root folder
and it's not exporting table field names.i want to take field names also.
can someone help me to solve this?
Thanks
Re: Export data to user desktop
Posted: Sat Apr 26, 2008 12:24 am
by flying_circus
Why not post YOUR coding so that we can help you to add the code necessary to get field names?
Why not change the path where the file is saved to a publicly accessible directory and then use the php header() function to direct the user to download your file?
Code: Select all
<?php
header("location:http://www.mydomain.com/myBackUpFile.txt");
?>
Re: Export data to user desktop
Posted: Sat Apr 26, 2008 11:44 am
by RobertGonzalez
You have no control over where a file is saved on a person's computer. Exporting is simple. Google it... no one here is going to write your code for you.
Re: Export data to user desktop
Posted: Sat Apr 26, 2008 12:51 pm
by John Cartwright
And sorry to say, your urgency is not ours. Consider hiring a professional.