A little dab'll do ya
Code Snippets
Home » Code Snippets » PHP
- Adjust Server Time
- Append Login Credentials to URL
- Append Non-Breaking Space Between Last Two Words
- Applying Even/Odd Classes
- Associative Array Syntax
- Automatic Copyright Year
- Automatic Mailto Links
- Backup Database
- Basic Database Connection, Random Query, Display Result
- Basic SimplePie Usage
- Build a Calendar Table
- Change Date from dd/mm/yyyy to yyyy-dd-mm
- Change Graphics Based on Season
- Change Month Number to Month Name
- Check if File Exists / Append Number to Name
- Check if Website is Available
- Cleaning Variables
- Comments in PHP
- Concatenate Array for Human Reading
- Convert BR to Newline
- Convert Comma Separated String into Array
- Convert HEX to RGB
- Count Script Excecution Time
- Create Unique AlphaNumeric
- Create URL Slug from Post Title
- Crop Image
- Cross Domain GET Forwarding
- Debugging $_REQUEST
- Detect AJAX Request
- Detect IE5 or IE6
- Discover and Display Meta Tags
- Display a User Gravatar from an Email Address
- Display Array Contents
- Display FeedBurner Feed Count
- Display Styled Directory Contents
- Email Address Validation
- English Time to Seconds
- Error Page to Handle All Errors
- Extract Email Addresses
- Find All Links on a Page
- Find File Extension
- Find Highest Numerically Named File
- Find the Full Path to a File
- Find URLs in Text, Make Links
- Force Leading Zero
- Generate CSV from Array
- Get All-Time Number of MySQL Queries
- Get Current File Name
- Get FeedBurner Subscriber Count with cURL
- Get File Last Updated Date
- Get File Size
- Get Geo-IP Information
- Get Image Information
- Get Latest Twitter Status
- Get Suffix of Given Number/Date
- Get Users IP Address
- Highlight a Substring
- HTML Tidy
- Increase Maximum PHP Upload Size
- Insert Element Every nth Loop
- Intelligent PHP Cache Control
- Login Function
- Make Random Number
- MySQL Backup Class
- MySQL Database Access Class
- MySQL Restore Class
- Options to Truncate Strings
- Output Buffering
- Pagination Function
- Parse JSON
- Perform Function on Each Item of an Array
- PHP Array Contains
- PHP Date Parameters
- PHP IE Detection
- PHP Include
- PHP Redirect
- PHP Zebra Striping a Table
- POST Validation Loop
- Quick Alphabetic Navigation
- Random Hex Color
- Random Slogan Displayer
- Random String from Pre-Determined Characters
- Randomize Background Image
- Randomize File Name
- Read/Write Files
- Return Only One Variable from MySQL Query
- RSS Generator
- Sanitize Database Inputs
- Send Email
- Separate First and Last Name
- Server Side Image Resizer
- Simple Zipcode Range Tester
- Time Ago Function
- Truncate Long String Exactly In Middle
- Truncate String by Words
- Unzip Files
- Update Values of Entire Table
- URL Validation
- Variable Variables
- Zero Padded Numbers