I am going to sell a template. I don't want people able to see my source code, but I want a live demo. If there is an "index.php" and a "demo.php", how would I secretly make demo.php inside of index.php without users knowing it? Thank-you, Jake.
Doesn't this just integrate the HTML from the other file into your file and makes the source of demo.php totally viewable? So if you go View > Source you can't see the Demo.php file or name anywhere? Thanks.
A javascript encoder is probably the best thing although nothing will foolproof against someone who's determined. A common trick is to include demo.php and add part of your layout within this file. Then encrypt this code. You'll find that people won't be able to edit the demo.php easily as it's encrypted and if they try to remove it, the layout is broken as some of the code is deleted with it.