CoderZone.org

 Category: PHP Code

Bookmark and Share

Random Image from Directory - Spits out a random image path from a given directory.
Random Pronounceable Passwords - Produces nice random-yet-pronounceable passwords.
Read a web page directly in to a string - A slick and easy way of reading a remote file or web page directly in...
Read gzip File - This function will get contents of a gzip file into a string.
Really Get File Extension - A function that gets the real file extension. Returns an empty string if file has n...
Recursive Directory Browser - This function takes in a directory path and recursively searches through the dire...
Recursive Directory Browser - This snippet recursively searches through the directory structure and returns all...
Recursive fopen() function - A small function useful for backup and other things. It's a mix between the fopen(...
Recursive function to generate a parent/child tree - This is a simple PHP script to generate a Category Tree st...
Recursively traverse array - A recursive function to traverse a multi-dimensional array where the dimensions ...
Reduce multiple spaces or dashes to a single instance - This code replace multiple spaces or dashes with a sing...
Regex Matching Patterns - Some miscellaneous regex patterns to match common items.
Remote file_exist() - Use this if you want to check if a remote file exists.
Remove All Files An A Given Directory - This function will take a folder path and remove all files and folders ...
Remove all non-ASCII chars - Removes all non-ASCII chars (like "", "", "", etc). Great for sanitizing input ...
Remove empty lines from a string or file - Nice PHP one-liner to remove empty lines from a string or file.
Remove empty lines from text files - Compact function that strips (removes) empty lines from text files or stri...
Remove extra linebreaks - Won't allow more than two linebreaks tags in a row.
Remove Extra Spaces From A String - Three ways to remove extra spaces from string and replace them with "...
Resize and convert an image to a PNG using GD - Take images in a variety of formats (GIF,JPEG,PNG) and save the...
Reversible Encryption in PHP - Mcrypt is a PHP function that uses encryption algorithms. It can be used to encr...
Roman2dec and Dec2Roman - A function that converts to and from Roman numerals.
Rounded random numbers - Make nice, clean random numbers. This example will return a whole number between 1 and...
Saving Remote Images With PHP - Two ways to save remote images with PHP. The second way is useful if the allow_...
Search All Words Of A String In mySQL - This code will break a string of words up along the spaces and do a myS...
Search and Replace On Every Field In Every Table - This script will do a global search and replace on every fie...
Search array elements for a substring - Searches all array elements for a given substring. This function will r...
Secure Auto-Link Maker - A more secure version of the auto-linking conversion code which will should make cross...
Select (dropdown) list generator - Makes a dropdown (SELECT) list.
Send iCal Email Meeting Requests using PHP - Awesome function from Julian Young. Send iCal Email Meeting Reque...

© coderzone.org | users online: 5