In the third and fourth line we are storing the data and sending it to the client machine through the file download. Note that in the second line we are specifying the default file name. We can set a default file name for the file also. Here by using the header option we will tell the browser that the file format is different then what it opens. The records of the member is taken out from a table and formatted as per CSV file format and then the visitor / member gets a prompt to save the CSV file in the client machine. ![]() Say if a member is downloading his / her address book in CSV format then the records of this file is created on the fly. But the problem comes when we don’t have a file or a fixed URL to create a link. ![]() On clicking the link the visitor’s browser will show a window to save the zip file in client machine. We can ask the visitor to download the file and point one simple link to the zip file. In this site also you can download many codes in zip format. Sometime we ask visitors to download files from a web site.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |