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? Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/ 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 Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/#findComment-384795 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? Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/#findComment-384806 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 Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/#findComment-384809 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. Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/#findComment-384815 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 Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/#findComment-384816 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? Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/#findComment-384825 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'] Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/#findComment-384849 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. Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/#findComment-384859 Share on other sites More sharing options...
abdfahim Posted November 6, 2007 Author Share Posted November 6, 2007 thanx Boss .. works fine Link to comment https://forums.phpfreaks.com/topic/76020-solved-creating-file-in-client-side-pc/#findComment-385455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.