rxbanditboy1112 Posted November 26, 2007 Share Posted November 26, 2007 The end of my code is below. I am wondering if it is possible to export a file from mysql with php and password protect it. Also I would probably need some sort of encryption with the password and then the password would need to be readable in c#. I know there are compatible encryption formats between .net and php. The main issue here is how to password protect a file. Is it possible in the below format? Also I used .lw as my file extension as opposed to .xls. Trying to black box this as much as possible and not allow others to use the excel file without my windows program. Also Read Only is not a solution. I want to be able to read and write to the file later with a password. header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=$file_name.lw"); header("Pragma: no-cache"); header("Expires: 0"); print “$headern$data"; Quote Link to comment Share on other sites More sharing options...
revraz Posted November 26, 2007 Share Posted November 26, 2007 Why not just use the feature in Excel to PW protect it? Quote Link to comment Share on other sites More sharing options...
rxbanditboy1112 Posted November 26, 2007 Author Share Posted November 26, 2007 Well I know I could do that, but I am trying to make this available to every user on the website. Here is an example, not the exact reason I am creating things this way. Let us say that we had a database of products. Any user could populate this database. Let us also say that each of these users has their own physical real life store. When someone buys an item is added to an orders database. Now either for accounting purposes or other let us also say that this user would like a file describing transaction history in a database like format. I would like to however not let them use Excel to open this file, but rather a windows program I created. I am trying to not allow people to manipulate fields and really try to control which entries are being edited. Also I am trying to automate other things with my windows program. Quote Link to comment Share on other sites More sharing options...
rxbanditboy1112 Posted November 27, 2007 Author Share Posted November 27, 2007 bump? Quote Link to comment Share on other sites More sharing options...
rxbanditboy1112 Posted November 27, 2007 Author Share Posted November 27, 2007 I suppose i could encrypt the entire page and decrypt when i want to read... 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.