Validates postal code based on country currently just us ca uk postalcodevalidate ctry postcode Assumes the use of the international letter country code e g quot us quot for USA
PHP Snippets
Every PHP developer needs a good and reliable collection of code snippets. In this category, you will find 900+ copy and paste code snippets that will help in your next PHP project.
Random password generator that you can customize to include uppcase letters, lowercase letters, and numbers, as well as the length of the password. Read the comments for more info.
This class can parse your custom tags and submits function for it example lt mytag tagImage src quot myigame gif quot gt lt mytag image gt would call your function
A simple php page that makes adding LONGDESC pages for images much easer Can also be used for ‘d’ links for images It’s extreamly simple code took like ten minutes
Mysql has it, why doesn’t PG? This lets you do the same thing.
Here a FastTemplate class that I have modified I made the the modifications in order for the class to work with php and also got rid of the apache error
Convert a php class to an xml string.
This takes a postcode as a get variable then converts it to a longitude and latitude from a database It then plots this position on a map of the UK
A great bit of code i was given ages ago I have added filesize though To see a working example if you got opera or some other WAP browser see
RGB to Hex Hex to RGB Function echo ‘ FFFFFF gt ‘ rgb hex rgb ‘ FFFFFF’ ‘ lt br gt ‘ echo ‘ FFCCEE gt ‘ rgb hex rgb