Jaygilford - jaygilford.com - JayGilford.com
General Information:
Latest News:
Rackspace Cloud Files USA to the UK service free php migration script 7 Sep 2011 | 12:32 am
Recently I’ve moved from Rackspace cloud US to the UK, and as such needed to transfer a large amount of data from my cloud files. Rackspace will not provide this service for customers unfortunately du...
Simple timer class for benchmarking in PHP 4 Feb 2010 | 08:46 am
Here’s a simple timer class that I wrote to help with benchmarking tests while running PHP code, in order to see how quick code is running, although it can be used for any timer functionality really. ...
Using the PHP Document Object Model (DOM) to get all page links 28 Jan 2010 | 05:27 am
Further to the article I wrote about parsing links from a html page, here is a more elegant and accurate solution to getting every link using the Document Object Model (DOM) /** * @author Jay Gilford ...
How to reset your wordpress administrator password 10 Nov 2009 | 02:18 pm
Save the file from the download link below into your root wordpress directory, then go to your WordPress site (http://www.yoursite.com/wp-directory/wpreset.php) Select the administrator account from t...
Number to text converting PHP class 3 Nov 2009 | 03:19 am
One thing that gets asked quite a bit on forums is how to convert a number into words in PHP, so I thought I’d write a small class that can do this Here is the code for the class class num2text { priv...
how to get all links from a web page 26 Oct 2009 | 11:13 am
A question that gets asked all the time on forums is “How do I get all links on a web page” inside of <a> tags, so here’s some code with full commenting for each line /** * @author Jay Gilford */ // r...
Setting up virtual hosts in apache on a windows machine 22 Feb 2009 | 09:28 am
Navigate to your apache folder and find the conf folder (for WAMP this is C:\wamp\bin\apache\apache{version number here}\conf\ by default, for xampp this is C:\xampp\apache\conf\ by default) Next open...
Completely customisable PHP pagination class 13 Jan 2009 | 10:36 am
If you need to paginate your database results quickly and reliably then this could be the class for you. It allows you complete access to all attributes of the pagination, from the link templates to t...
Gracefully handling errors in php using advanced techniques 12 Oct 2008 | 08:31 am
There are a few ways in which you can handle errors in PHP. You can do the not so smart thing and just turn them off altogether using ini_set('error_reporting',0); //or error_reporting(0); However thi...
sprintf and mysql_real_escape_string all in one function 9 Oct 2008 | 07:23 am
Well as many php developers will know, there is the arduous task of having to sanitize all of your data before actually being able to add it to your queries for running in MySQL. So I decided to make ...