I have a server running apache/mysql/php and php-driven web-site to manage the server's mysql database from remote hosts. Now I'd like to add 'export'-button to the site, which should export the database to a text-file on host computer but i don't know how to do that. i have tried 'select into outfile' but it works only when i done it from the server. Please help!