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 …
[Read more...]
Simple Adsense Snippets Generator PHP Function
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 the data returned.
How …
[Read 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" …
[Read 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 PHP one will be great …
[Read 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 …
[Read more...]
