Welcome

We at WLScripting.com have created many php tutorials for you to follow so you can enhance your website. If you have any questions please post a comment for that tutorial.

We are now on twitter. We will be posting links to new code snippets on twitter. Follow us to be notified of new postings.

Last 5 Tutorials
Calculate time difference between dates
Recently I needed some code to calculate a users age based on their birthday. There are many different functions that are already created out there that I could have used, but instead I wrote this piece of code. It uses PHP 5 DateTime class to return an array of information pertaining to how old a [...]
By: Daniel

Time/Date | Added: 01-20-2010 | Comments Off
Remove whitespace from string
Remove whitespace from the beginning, middle and end of a string.
By: Daniel

Basics, Miscellaneous | Added: 10-28-2009 | 1 Comment »
Get date by position (ie. third Wednesday of January)
Allows you to convert: "third Wednesday of January" to the actual date value.
By: Daniel

Time/Date | Added: 05-06-2009 | 6 Comments »
Sanitize copy/paste text from word
Sanitize content copied and pasted from Microsoft Word for insertion into database.
By: Daniel

Basics | Added: 03-25-2009 | 1 Comment »
Calculate a percentage
Function for simplifying percentage calculations given a numerator and denominator
By: Daniel

Math | Added: 03-24-2009 | Comments Off
geovisitors