CoderZone.org

 Category: PHP Code

Bookmark and Share

Download File To Client - Here's a function for sending a file to the client - it may look more complicated tha...
Easily detect Odd/Even numbers - This is a simple way to tell whether a given number is odd or even. It works v...
Easy date manipulation - Many times you may need to change a date from one format to another. For example, you ...
Easy page browser - An easy page browser class that produces this type of utput: ( prev 6 7 8 9 10 next )
Easy Password Encryption and Decryption - An easy password encrypt/decrypt function.
Easy way to break apart an email address - Probably the easiest way to break apart an email address is to use s...
Echo 'n' number of words - To get the first 250 words offset you can use php.net/stripos in a loop like this.
Email attachments with PHP mail() - Class to send a file as an attachment with the PHP mail() function.
Email w/ attachments class - Class for sending mail with MIME attachments in multipart format using external s...
Encrypt and Decrypt without a known key - PHP Function to Encrypt and Decrypt a string without a known key. T...
Encrypted Sessions - A simple class used to encode and decode session values to make it harder to obtain privat...
EVAL a file - Evaluate an external file as a PHP script and get the result as string. For example, you'd like ...
Exponentially Weighted Random Number Generator - An exponentially weighted random number generator that generat...
Export mySQL results to CSV - This script will export the results of a mySQL query to a Comma Separated Value (...
Export table to Excel or MS Word file - Export a mySQL database table to an EXCEL file. A database table dump t...
Extract and Display all links on a web page - Given a URl this code will extract and display all links on a web...
Extract Search Query from Referer - This will extract the search query from a search engine's search. You can u...
Fake email addresses - Generates lists of fake email addresses. Can be used as a spambot trap to poison a spamm...
Filter Empty Array Elements - Filters out any empty array elements from the submitted array.
Financial management functions - A suite of financial management functions, including present and future value ...
Find days between dates #1 - A simple way to find all days between a pair of dates.
Find first non-numeric character in a string - This one-liner finds the position of the first occurrence of a n...
Find IP from Hostname - This often works better than using gethostbyname() or other native functions:
Find Percentage Function - A simple function that takes two parameters ($int1, $int2) and uses them to calculat...
Find the current URL of the page - Finds the current URL of the page.
Fix missing $_SERVER SCRIPT_URL variable - Many scripts rely on $_SERVER[SCRIPT_URL] which is sometimes missing...
Flat file counter - Simple demo of a flat file counter.
Flood Protection Script - This script will stop and redirect a user when they make too many requests too quickl...
Format money as millions, billions, etc - This function formats a money amount into an abbreviated form. It t...
Forum skeleton code - Very basic skeleton code for a forum. Installation: filename.php?type=setup

© coderzone.org | users online: 4