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
Export data to user desktop
Moderator: General Moderators
- flying_circus
- Forum Regular
- Posts: 732
- Joined: Wed Mar 05, 2008 10:23 pm
- Location: Sunriver, OR
Re: Export data to user desktop
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?
?>
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");
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Export data to user desktop
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.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Export data to user desktop
And sorry to say, your urgency is not ours. Consider hiring a professional.