This function calculates how strong a password choice is. A strong password has a value that is as close to possible to 100.
Allows you to easily keep track of a series of items as either odd or even. Each time you check (using the "which" method) the counter increments so that the next time you check the state will have changed. This is the perfect class for using when you're outputting an HTML table and want to use different classes to differentiate between odd and even rows. Simply create a new instance and call OddEven->which() for each row!
A hitcounter that uses numbers(0.bmp,1.bmp....9.bmp) To display unique visits
if one visits for the first time, it says welcome. otherwise it gives the visit number and says when the user was on the site last time.
Validating email address using regular expression. This Regex can be used to search email addresses on text that produce list of emails in array, and also match email format from HTML form input.
This class is designed to be the interface class with a database (e.g MySQL). This is currently setup to use SQL syntax however can be changed if needed in future for a different type of database technology. Using this class will save a lot of programming if a change was needed. Has 3 main types of user accounts on construction for database privileges (readWrite, readWriteCreate, readOnly). Functions include query, insert, update, delete, number etc (have a look at the code :) )
Parse multiple feeds from different sources into separate pages using SimplePie class. A fast and efficient way to serve fresh content to your site as to provides the most up-to-date information to the readers.
The WordPress 4+ admin screens render badly in Chrome 44+, it's a Chrome bug which is being tracked but here's a little snippet to fix it in the short-term. Simply add this snippet to your functions.php file.
Detect whether a a specific date is a holiday.
This snippet will show you how to make read only properties in classes.
An image used to help stop bots from posting bad data
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://
keys of arrays contain arrays
The scope of this function is to encode the data with the status in JSON format.
status = 1
error is not generated while encoding data
key 'data' holds the data
status = 0
error is generated while encoding data
key 'msg' holds the error message and the error-code
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.
Copying or Moving Files and Child Files from Source Dir to Destination Dir
Takes a string and shortens it, but if it is in the middle of a word, go to the next space and end there.
Use this snippet to track what pages users have come from to get to your site.