Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Searching if certain code lines are present on a file

    Hello,

    Is there a way to code something which checks for certain code lines on a HTML file or PHP file and if they are not there or have been modify to send me an e-mail?

    Thanks,
    John

  • #2
    Regular Coder
    Join Date
    May 2006
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can fopen/fread thru the file and look for text that way.

  • #3
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well see the reason is that I will be putting a template for download but I do not want them to change the code lines which shows my copyrights of that template so if they do change those code lines or delete them from the .HTML file I would like to know about it of course.

    So here I am wondering if there is a way to code something within that file which checks to for those code lines which display my copyrights and if those code lines have been alter or deleted then to send me an e-mail becasue once they download the files I will have no control over those files (template) so at least I want to give those files with that script to check on it self for those code lines showing my copyrights.

    Can this be coded some how?
    Last edited by unforgotten; 06-20-2006 at 02:37 AM.

  • #4
    Regular Coder
    Join Date
    May 2006
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you are trying to protect your code, you might look at something along the lines of ionCube. There are a couple other encoders referenced here http://www.seocompany.ca/software/fr...-software.html

    ionCube is the only one I'm familiar with, but the obfuscator looks interesting especially considering the price tag and that nothing needs to be installed on the server.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •