I planned to give some free web templates I made on one of my site .. but they'll be all in PHP (but in simple PHP where it has header.php , footer.php , not complicated written PHP).
And I want to have, let say 5 links written on each template (e.g. in index.php) but the users MAY NOT delete those part otherwise the template wont work at all when they upload it to their hosting (they will be allowed to modify site logo, contents, etc, but not those 5 links).
I imagine that it should work like this:
I stored an HTML file on my hosting (e.g. links.html) which contains only:
Next, on each template (e.g. on index.php) I simply add this code so those 5 links will be available on the file (when uploaded somewhere by someone):
<?php include "http://mysite/links.html
The problem is of course that code to displayed 'links.html' can be easily deleted by the user.
can someone give a good advice about this? Perhaps the 'links.html' is possible to not stored on my server but secretly written on index.php?
I hope the solution is not by encrypting the whole index.php ... :( Thanks.