CoderZone.org

 Category: PHP Code

Bookmark and Share

Calculate Zipcode Distances - This routine calculates the distance between two points (given the latitude...
Calendar for any month any year - Simple, nice looking calendar displays any month and year.
Call a PHP function when clicking on an HTML button - Use the onclick() event listener in the button to call a ...
Censor Message Text - Fill the "$bw" string with bad words separated by a pipe symbol and then run your text th...
Check if a file exists - Use PHP to check if a file exists or not.
Check if an image exists (GD) - Check if an image exists using the GD library.
Check if array is associative - The is_assoc_array function checks if given array is associative or not.
Check number of characters in a range - This code checks to see if the number of characters is within in a give...
Check syntax of multiple PHP files all at once - To check the syntax of all files ending with a '.php' file ext...
Checking Server Status with PHP - A small bit of code to check server status and report the results. Easily com...
Code Obfuscator - Scrambles your PHP code so it's much more difficult to reverse-engineer. It changes all the v...
Combining three arrays into one - This code combines three arrays into one multidimensional array.
Combining two arrays into one - A quick bit of code for combining two arrays into one.
Confiurable "Wrap Lines" Function - This function wraps a text string at a specified number of characters.
Convert 12 to 24 hour time and vice versa - Convert 24-hour format to 12-hour format. Also works in the other d...
Convert BBCode Tags - Compact function that converts BBCode tags to their HTML equivalent.
Convert Dollars And Cents Value to Words - This function converts a dollar amount into English words, i.e. "Twe...
Convert Hours to Minutes - Simple hours to minutes conversion code.
Convert HTML to plain text - If you want to extract the text content of a HTML document (eg - get rid of all th...
Convert miles to feet, feet to miles, or inches. - Handy function to convert miles to feet, feet to miles, mile...
Convert Minutes to Days, Hours, and Minutes - Simple way to convert minutes to human readable Days, Hours, and ...
Convert Minutes to Hours - Another "Minutes to Hours" conversion script.
Convert minutes to hours #1 - Convert minutes into an HH:mm format.
Convert minutes to hours #2 - Convert minutes to a decimal hours and minutes format, i.e. "1.25" hours.
Convert Seconds to Hours:Minutes:Seconds - This function will convert a given number of seconds to hours, minut...
Convert text to image in php - Here's how to style a text string and convert it to a transparent .PNG (alpha BG).
Convert UK Dates To mySQL Format Dates - Handy function that will convert a UK date style (dd/mm/yyyy) into a i...
Cookie Login Code Example - Shows a simple cookie-based "Remember Me" function for login forms.
Copy a remote file to your site - Copies any file (image, zip, swf, etc) from a remote site to a file on your site.
Copy File From Server - This will retrieve a text file from a remote server and write it to yours.

© coderzone.org | users online: 5