I wrote that 4 am so it might have been a bit confusing, here's the idea:
I have a project fully made in PHP which I want to distribute. I want to prevent users from sharing with eachother by making every copy unique and be bound to the domain of their choice.
Now as long as you know PHP you can just alter the code inside the projects and remove the security checks etc..
I've looked at encrypting part of the code to prevent that from happening but I hesitated from using a program when I read this:
http://answers.yahoo.com/question/index?qid=20080716074827AAd2bcD
And I also want it to be automatically encrypted by a PHP script and work on all PHP5 installations.
Now I was just messing around and found that if the string looks like this:
/*_<?php*/ <PHP CODE HERE> /*?>*/
The eval function will execute the code while the echo, print, fprint and so on functions will just print a smiley like this /_/ (yeah, I added underscore to make it a smiley )
I then noticed that if you write the code to a file, it didn't read the comment etc at all and just printed the whole code.
Thanks in advance for the help and sorry if I was a bit confusing.