i just do not want to someone else to read my file generated by php with normal text editor!

anybody know about it!😃

    Any file may be read with text editor 🙂

    You need some sort of reversable encoding. That's the question for google. Or there may be some built-in php encryption functions, I don't really remember.

      oh

      that's bad news

      then how to avoid be read by some normal editor,
      such as

      notepad, frontpage, dreamweaver, ultraedit...??😃

        As for notepad, the solution is to make the file bigger than 64K 🙂

        Generally, normal text editors (those you menthioned, too) can read any file. But in case it contains some binary data instead of words & letters the user will see a lot of ASCII symbols, making no sense for him/her.
        If you've got some textual data you want to make unreadable, you have to encrypt it. Depending on what level of security, it may be something really simple (for example, replace every letter with one next to it in alphabet), or some really complicated encryption algorithm used in real world applications. Honestly speaking, every decodable encryption algorithm can be hacked, but hacking may require too much computer power, thus being unreasonable.
        Anyway, it is cryptography matters, and not a question for PHP forum; besides, I haven't got much knowledge on the topic. And anyway, I believe you don't want to go this deep in the matter...

          Why are you concerned with people reading your code. PHP code is not sent to the client's browser, only the final output is. Go ahead and try it, load up a page and the view the source from your browser. You'll get just the html and you php code is safe.

            Many moons ago, I wrote a shareware tutorial on BASIC. One of the programs I used to demonstrate the CHRS$ was to take the number of the character and add or subtract a number from it. I used a random function to set the number.
            In other words, if the key was +1, a j was a k, an a became a b. etc.
            But the trick was to go far enough to make the letters unrecognizable, like !@#$%&*()_ etc.
            This means a person would have to get serious to hack your file, since each time the number would change, resulting in a new file each time he/she downloaded it.
            My experience has been that hackers have short attention spans, if they can't hack something in a few minutes, they move on.
            I am having problems with idiots copying from my site and posting it on yahoo message boards. Since all original content on my site is copyrighted, it is no problem to have it removed. But to be honest, I like the free publicity.
            arelgee

              Write a Reply...