febeeh Posted August 19, 2013 Share Posted August 19, 2013 hi guys, how i can make my php file uneditable, i am going to send my work to my friends, i am not trusting him well so i want to protect it is there any way to make it uneditable ???? Quote Link to comment https://forums.phpfreaks.com/topic/281360-protection/ Share on other sites More sharing options...
cyberRobot Posted August 19, 2013 Share Posted August 19, 2013 How are you sending the file? If it's sent through e-mail, for example, you're just sending a copy. It doesn't really matter what they do with the file. Just don't accept a file back from the friend and replace your copy. Quote Link to comment https://forums.phpfreaks.com/topic/281360-protection/#findComment-1445809 Share on other sites More sharing options...
febeeh Posted August 19, 2013 Author Share Posted August 19, 2013 i am sending through mediafire so its just an biz i want to protect my file from reediting others person Quote Link to comment https://forums.phpfreaks.com/topic/281360-protection/#findComment-1445811 Share on other sites More sharing options...
cyberRobot Posted August 19, 2013 Share Posted August 19, 2013 I'm not very familiar with the service, but they provide a couple different options for sharing files. The Collaboration option makes it so you'll both be able modify the file. If you use the Share option instead, they should only be able to download a copy. If they make any changes, it shouldn't affect the original. To make sure that's true, you could create a second test account with MediaFire to see how it works. Quote Link to comment https://forums.phpfreaks.com/topic/281360-protection/#findComment-1445827 Share on other sites More sharing options...
Psycho Posted August 19, 2013 Share Posted August 19, 2013 Yeah, what you are asking doesn't make a lot of sense as you describe it. If you send them a file, what are you concerned about with someone editing it. You can, obviously, decide not to accept an modified files. So, the only thing I can assume is that you don't want people to modify your files to do something you did not intend. If that's the case, there really is no way to do that. Even if you could make the file read-only, what's to prevent them from doing a copy/paste into a new file? The best you could attempt to achieve is to "print" the file to some format where the text cannot be selected, such as an image. Note: You could do PDF, but typically text is still selectable. But, there are ways to "flatten" the PDF so the text is treated more like an image in the PDF. But, even with that method, a quick conversion with an OCR reader will easily convert the "image" of the code back into text. So, there really is no good way to provide someone your code and ensure they will not be able to edit/retrieve it. Quote Link to comment https://forums.phpfreaks.com/topic/281360-protection/#findComment-1445841 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.