Page 1 of 1

Dumping query results into a file on the client side.

Posted: Mon Nov 08, 2004 9:16 am
by AnarKy
Hi all,

I have a query that I am displaying in a table on a php page,
I need the ability to dump these results into a file on the client side.

I know how to get the information into a file,
but wont this file be on the server machine?

Does anybody know how to let the user select
the name and location of the file and how to write to the file at that
location on the client machine?

I don’t know if I am posting this in the right place.
Any help would be really appreciated.
Thanks.

Posted: Mon Nov 08, 2004 9:53 am
by kettle_drum
Search the forums for "forcing downloads". You will have to create the file on the server and then force the user to download it, you cant just put it on their computer.

Thanks.

Posted: Mon Nov 08, 2004 12:04 pm
by AnarKy
Thank you,

It worked fine. Would never have thought of that.
:P