abdfahim Posted November 5, 2007 Share Posted November 5, 2007 Is it possible to create a file in client's PC using fopen() method? If not, how can create a file in user's PC? Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted November 5, 2007 Share Posted November 5, 2007 Other than setting a cookie, I doubt you can create a file on a user's PC. That would require an ActiveX control. PhREEEk Quote Link to comment Share on other sites More sharing options...
abdfahim Posted November 5, 2007 Author Share Posted November 5, 2007 So, how can I make probation for exporting data from server database in CSV format to user PC? Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted November 5, 2007 Share Posted November 5, 2007 Use what everyone else uses, and make it a download that the User ELECTS to have sent to him/her. PhREEk Quote Link to comment Share on other sites More sharing options...
abdfahim Posted November 5, 2007 Author Share Posted November 5, 2007 Can u please give any helpful link? I have never work with files in PHP. Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted November 5, 2007 Share Posted November 5, 2007 Making a file available to download is not PHP, it's an HTML link <a href="http://www.mysite.com/files/CSV/file1.csv">Download file1.csv!</a> PhREEEk Quote Link to comment Share on other sites More sharing options...
abdfahim Posted November 5, 2007 Author Share Posted November 5, 2007 Oh c'mon ... I have a button which is used to create a file and export data from database to that file. So, in you process, i have to place another link in the 2nd page which will link the "just created" file. Isn't it possible to do all these with a single button click? Quote Link to comment Share on other sites More sharing options...
redarrow Posted November 5, 2007 Share Posted November 5, 2007 no do it the way explained or it will get more complecated useing a $_GET['condition'] Quote Link to comment Share on other sites More sharing options...
trq Posted November 5, 2007 Share Posted November 5, 2007 Have a look in the Check out the FAQ/Code snippet repository, there is a thread in there force a download that should help you. Quote Link to comment Share on other sites More sharing options...
abdfahim Posted November 6, 2007 Author Share Posted November 6, 2007 thanx Boss .. works fine Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.