Page 1 of 1

PHP Disclaimer

Posted: Mon May 11, 2009 10:19 am
by daebat
I'm using a php poll script that I found and was wondering how the person uses a disclaimer on the script. I searched for the string that is displayed "script by blah blah" and isn't located in any of the files... is he calling outside of the script? How does this work? I'm less interested in removing the disclaimer and more interested in how this actually works... thanks!

Re: PHP Disclaimer

Posted: Mon May 11, 2009 10:30 am
by onion2k
There are lots of ways of doing it. He may simply have obfuscated the string (hidden it) like:

Code: Select all

echo base64_decode("c2NyaXB0IGJ5IGJsYWggYmxhaA==");
Or he may be calling an external file like:

Code: Select all

echo file_get_contents("http://www.domain.com/disclaimer.txt");
Or he may have done something clever.