Checks to see if one number is a multiple of another number.
Take an image, and put a water mark on top of it.
Take a text file and display an image on certain days (such as a holiday logo).
All this snippet really needs is 2 arrays containing different values. The first array will be the field names in the table you're submitting to. The second array will hold the submitted data to add into the new record. You will need to arrange the fields and values in order for the snippet to work properly. Here's how it works. The first parameter needs the table name you're creating the new record in. The second parameter will be the variable that contains the array of field names of the table you have chosen. The third parameter will contain the values to add into the field names in it's own record. The fourth parameter is option. Adding true to it will return the last ID that mysql auto incremented to your PHP code, so you may use it in any way you like. Like the example shown, the $insert variable is going to retrieve the ID that Mysql sent back to be used in a header redirection. This code works for mysql_* functions, but you can modify it to work with MySQLi too.
This script will extract urls from an html string, and can either return the urls as they are in the html or as formatted urls with http://
Use this snippet to track what pages users have come from to get to your site.
Countries of the European Union add an hour to the time during summer to better seize sunlight, so for several months GMT 0 becomes GMT +1, GMT+1 becomes GMT-2 and so on. This is known as Central European Summer Time (CEST). This script takes a Unix timestamp and adds an hour to it (3600 seconds) if we are in this summer period.
Put your site into "maintenance mode" without disrupting form posts.
This will replace all html tags with a particular string.
Want to see the zodiac sign of something? using this function to display the zodiac of the object.
Count the words typed using exlpode function
Do you display data from a database, but your table is one row? Fix that by using this code to make your data more than one row for readability.
This code uses a database to check the number of users that are online within a current time period.
Check a date range to see if it overlaps another saved date range.
Searh a database, and sort the results using page numbering to split up the data.
Copying or Moving Files and Child Files from Source Dir to Destination Dir
Returns the complete class hierarchy of an object or a class name. Can be used as method or function. If you have any trouble with the LGPL licence send me a mail.