PHP Disclaimer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
daebat
Forum Commoner
Posts: 47
Joined: Mon May 11, 2009 10:16 am

PHP Disclaimer

Post 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!
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: PHP Disclaimer

Post 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.
Post Reply