Category Archives: Snippets

Faded text

I actually converted an old JavaScript function to this PHP. I made a chat page and wanted a way to enhance the chat a bit. Then I remembered back in the AOL 4.0 days, we used to make chat faders. I couldn't find a PHP snippet that did such a task, so i set out to make one. This will convert your text's color. The string will start off as red, and fade to green (or what ever colors you want! [url=http://f.reelinks.com/fade/index.php]Example[/url]

Country from IP

I was working on a advert site for a buddy, and needed to get the traffic's country code. This retrieves data (JSON format) and decodes it to get the user's country. If json_decode works on your server, you can remove json_decoder function, and change $json_Co=json_decoder($getCo); to $json_Co=json_decode($getCo);
Powered by Gewgley