RE: [PHP] CSV download
| From: | Tulsa) | Date: | Wed, 18 Feb 2004 19:51:23 +0000 |
| Subject: | RE: [PHP] CSV download | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178166@lists.php.net to get a copy of this message | ||
Is this through the fopen() and other file handling functions?
Mark Roberts
Sr. Systems Analyst
Corporate Compliance & Governance Applications
The Williams Information Technologies
Office 918.573.1706
Pager 918.672.5359
Fax 918.573.0892
Email: mark.roberts@williams.com
Email Text to pager: 9186725359@page.metrocall.com
-----Original Message-----
From: Robby Russell [mailto:rrussell@commandprompt.com]
Sent: Wednesday, February 18, 2004 12:42 PM
To: Roberts, Mark (Tulsa); php-general@lists.php.net
Subject: Re: [PHP] CSV download
Roberts, Mark (Tulsa) typed this on 02/18/2004 10:33 AM:
> I have an application that I need to add a function to that will
> download a complete MySql Table in comma delineated format from a web
> site to a local hard drive. What is the best way to do this?
>
> Is there a function in PHP that will do this? in MySql? or do I just
> need to do something with fopen().
>
All you need to do is open a temporary file, write to it on the server,
then send to the client browser for them to save.
-Robby
--
#-------------------------------------------------------
# Robby Russell, | Sr. Administrator / Lead Programmer
# Command Prompt, Inc. | http://www.commandprompt.com
# rrussell@commandprompt.com | Telephone: (503) 667.4564
#-------------------------------------------------------