Printing an array in to user defined file in php
<p>I have a doubt on file download using php. I have written a script though which i created a report as an array. 
   Now I want the array to be printed an a user defined file name while clicking the link.
   I created like, the output will be created on the same directory. I don;t want the output to be created in server. I want it to be written on the file of users directory from directly through the array.
   The creation of the download link also will be displayed on the same page itself.</p>
