PHP

Simple Adsense Snippets Generator PHP Function

This simple PHP function should make it a little easier to manage your AdSense code snippets for your site.
When this function is called, it will display ‘Content’ or ‘Referral’ type AdSense banner of choice. The type, width, height and CPA choice is passed when the function is called.
The colors used for the ads are More >

How To Create an RSS Aggregator with PHP and AJAX

Over on Informit.com is a great article I found that shows step-by-step how to create an RSS Aggregator with PHP and AJAX.
This seems like a great tutorial to get you started on AJAX, since it covers GET and POST to PHP via JavaScript, which is what’s required for AJAX.
It follows with a section on parsing More >

Simple "Translate this Page" PHP Function

Here is a simple PHP function I created that will generate a set of links to “Translate this Page”.
Currently the script translates from English to Arabic, German, French, Spanish, Italian or Japanese using Google Language Tools page translator.
I have added the option for the function to create “Translate this Page to” followed by:

A List of More >

Web Development Cheat Sheets, Must Haves

Today I found a site that offers great web development cheat sheets!
There is MySQL, mod_rewrite, CSS, PHP and RGB Hex color chart. All great to have, I hope to print them out on the nice color laserjet at work!
I know the MySQL one will be helpful for reminding me the MySQL data types, the More >

New Lines to Paragraphs PHP Function

This is a great php function, written by Matthew Mullenweg, that will format text that has been pulled from a MySQL database so that it is displayed with HTML paragraph tags.
The function will replace new lines/carriage returns or even HTML line breaks with the paragraph tags, within the given string.
I have used this in More >