CoderZone.org

 Category: PHP Code

Bookmark and Share

Super simple encryption example - Super simple encryption example. The output is the sum of 6 and the ASCII val...
Super-mini Chat room - A super small, super simple chat room. No security, so use at your own risk.
Ternary Operator - Included for the sake of reference. Few PHP programmers use the ternary operator syntax....
Test for Prime Numbers - Test for prime numbers using PHP.
Test If File Is Included - This tests to see if the current file is being included or run directly. It's useful...
Test if mySQL table exists - This script just tests to see if a given table exists in mySQL database.
Text to GIF - Slick method of changing text to an image- useful to prevent copying text easily.
Time left In Weeks, Days, Hours, And Seconds - Returns time remaining in English when given the number of secon...
Toggle a column bit regardless of state - Toggle a column bit regardless of state. Useful to change state witho...
Transfer or migrate messages between two IMAP/POP e-mail accounts - Transfers messages between two IMAP/POP e-m...
Truncate Links Over X Chars long - Truncate URL if longer than 'X' characters (add http:// or ftp:// if missing)
Truncate text while preserving HTML tags - Truncate or limit a text string while still preserving any HTML tag...
Unique Array function - Similar to array_unique(), but implemented manually.
Unique IP-icture - Creates a picture based on your IP address. Is it useful? No! Is it cool? Yes!
Universal parameter reading - This simple yet practical function will read in your scripts' parameters regardle...
UNIX Timestamp conversion - Examples of converting UNIX timestamps to more useful formats.
Unset unkown array element - Given the array "1,2,3,4", let's say you want to delete the "3". You know the va...
Update MySQL Table Using An Array - Iterate over an array and update a mySQL table.
Use htpasswd file with PHPscripts - This is a way to use an existing .htpasswd file with your PHP-based authent...
Use SendMail - Talking to the mail program is like writing to a file. (Perl programmers will be familiar with t...
Validate credit card numbers - A set of functions to check the validity of a credit card number ($number, $t...
Validate email address #1 - Properly validate an email address format.
Validate email address #2 - Validates an email address format.
Validate email address #3 - This function validates an email address, returning an integer depending on whether...
Variable variables example - A simple example of using the great variables variables feature in PHP
Verify If Domain Really Exists - This script checks to see if a domain is present and reachable on the internet.
Vulnerability Tester - A source code tester. This searches through code (PHP files in this case) and finds poss...
WebServer Spy - WebServerSpy checks which kind of Webserver is running, Apache, Netscape , Fasttrack, IIS, HTT...
Weighted Random Choice - Random selection with a weighted bias.
Weighted Random Number Function - Randomly generates a weighted integer between two other (specified) integers ...

© coderzone.org | users online: 10