Jump to content

File Download


Doyley

Recommended Posts

Hi all,

 

Bit of a strange one.  I have generated a csv file from a MySQL database, I now need that csv file to be saved on the users machine with as little interaction as possible.  It will be the same filename and same location everytime.  Basically I want to give them a button that says "Generate", once they have hit it they can go to c:/somefolder and the file will be their waiting for them.

 

I was thinking of maybe an activex control or something similar but I really don't know what I'm doing with them so I'm just guessing.

 

Thanks!

Link to comment
Share on other sites

You won't be able to do this with php. You can probably go as far as hitting generate and then a window will pop up asking the user where he wants to save the file. But there won't be a way to automatically save it somewhere on the users pc.

 

Ray

Link to comment
Share on other sites

I was just thinking more about this....

 

All the people that would use this are based in our office, there is only a handful of them.

 

If I install an FTP server on each of their PC's and use PHP's FTP commands would that work?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.