<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JayGilford.com &#187; PHP</title>
	<atom:link href="http://www.jaygilford.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaygilford.com</link>
	<description>Numerous articles on PHP, MySQL and Apache files</description>
	<lastBuildDate>Tue, 06 Sep 2011 12:35:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple timer class for benchmarking in PHP</title>
		<link>http://www.jaygilford.com/php/simple-timer-class-for-benchmarking/</link>
		<comments>http://www.jaygilford.com/php/simple-timer-class-for-benchmarking/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 19:46:04 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[benchmarking]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[timer]]></category>

		<guid isPermaLink="false">http://www.jaygilford.com/?p=113</guid>
		<description><![CDATA[Here&#8217;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. I have clearly documented the code below, along with an example of how to use the timer /******************************************************************************* * [...]]]></description>
		<wfw:commentRss>http://www.jaygilford.com/php/simple-timer-class-for-benchmarking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the PHP Document Object Model (DOM) to get all page links</title>
		<link>http://www.jaygilford.com/php/php-dom-get-all-pagelinks/</link>
		<comments>http://www.jaygilford.com/php/php-dom-get-all-pagelinks/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 16:27:03 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Common questions]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Document Object Model]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[DOMDocument]]></category>
		<category><![CDATA[Friends]]></category>

		<guid isPermaLink="false">http://www.jaygilford.com/?p=103</guid>
		<description><![CDATA[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 */ /** * get_links() * * @param string $url * @return array */ function get_links($url) { // Create a [...]]]></description>
		<wfw:commentRss>http://www.jaygilford.com/php/php-dom-get-all-pagelinks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Number to text converting PHP class</title>
		<link>http://www.jaygilford.com/php/number-to-text-converting-php-class/</link>
		<comments>http://www.jaygilford.com/php/number-to-text-converting-php-class/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 14:19:42 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Common questions]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[common]]></category>
		<category><![CDATA[numbers]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.jaygilford.com/?p=89</guid>
		<description><![CDATA[One thing that gets asked quite a bit on forums is how to convert a number into words in PHP, so I thought I&#8217;d write a small class that can do this Here is the code for the class class num2text { private $_original = 0; private $_parsed_number_text = ''; private $_single_nums = array(1 => [...]]]></description>
		<wfw:commentRss>http://www.jaygilford.com/php/number-to-text-converting-php-class/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>how to get all links from a web page</title>
		<link>http://www.jaygilford.com/php/common-questions/how-to-get-all-links-from-a-web-page/</link>
		<comments>http://www.jaygilford.com/php/common-questions/how-to-get-all-links-from-a-web-page/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 00:13:46 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Common questions]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[urls]]></category>

		<guid isPermaLink="false">http://www.jaygilford.com/?p=85</guid>
		<description><![CDATA[A question that gets asked all the time on forums is &#8220;How do I get all links on a web page&#8221; inside of &#60;a&#62; tags, so here&#8217;s some code with full commenting for each line /** * @author Jay Gilford */ // regular expression pattern to match all links on a page $pattern = '%]+href="(?P[^"]+)"[^>*]*>(?P[^< [...]]]></description>
		<wfw:commentRss>http://www.jaygilford.com/php/common-questions/how-to-get-all-links-from-a-web-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Completely customisable PHP pagination class</title>
		<link>http://www.jaygilford.com/php/completely-customisable-php-pagination-class/</link>
		<comments>http://www.jaygilford.com/php/completely-customisable-php-pagination-class/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 21:36:48 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[paginate]]></category>
		<category><![CDATA[pagination]]></category>

		<guid isPermaLink="false">http://www.jaygilford.com/?p=68</guid>
		<description><![CDATA[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 the results padding, and auto querying. /******************************************************************************* * Pagination class * * Created: 12th January 2009 * * Updated: 16th [...]]]></description>
		<wfw:commentRss>http://www.jaygilford.com/php/completely-customisable-php-pagination-class/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Gracefully handling errors in php using advanced techniques</title>
		<link>http://www.jaygilford.com/php/gracefully-handling-errors-in-php-using-advanced-techniques/</link>
		<comments>http://www.jaygilford.com/php/gracefully-handling-errors-in-php-using-advanced-techniques/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 20:31:08 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[techniques]]></category>

		<guid isPermaLink="false">http://www.jaygilford.com/?p=45</guid>
		<description><![CDATA[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 this is not a good idea, and should never happen. If you want to hide all of your errors, you can set it [...]]]></description>
		<wfw:commentRss>http://www.jaygilford.com/php/gracefully-handling-errors-in-php-using-advanced-techniques/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php random string generator function</title>
		<link>http://www.jaygilford.com/php/php-random-string-generator-function/</link>
		<comments>http://www.jaygilford.com/php/php-random-string-generator-function/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 14:04:48 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://www.jaygilford.com/?p=14</guid>
		<description><![CDATA[Many people need a random string for things such as salts, activation keys and new passwords. Here&#8217;s a simple but versatile function to return a random string function rand_text( $min = 10, $max = 20, $randtext = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' ) { if($min < 1) $min=1; $varlen = rand($min,$max); $randtextlen = strlen($randtext); $text = ''; for($i=0; $i [...]]]></description>
		<wfw:commentRss>http://www.jaygilford.com/php/php-random-string-generator-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to process a form with php using one page</title>
		<link>http://www.jaygilford.com/php/how-to-process-a-form-with-php-using-one-page/</link>
		<comments>http://www.jaygilford.com/php/how-to-process-a-form-with-php-using-one-page/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 01:15:33 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[same]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.jaygilford.com/?p=11</guid>
		<description><![CDATA[Many first time coders in PHP tend to use a form on one page, and a PHP script on a completely different page in order to process it. This is highly irritating since you need to make two pages instead of one, and also, if there is an error you have to redirect back to [...]]]></description>
		<wfw:commentRss>http://www.jaygilford.com/php/how-to-process-a-form-with-php-using-one-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Headers already sent error php solution</title>
		<link>http://www.jaygilford.com/php/headers-already-sent-error-php-solution/</link>
		<comments>http://www.jaygilford.com/php/headers-already-sent-error-php-solution/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 23:39:18 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[sent]]></category>

		<guid isPermaLink="false">http://www.jaygilford.com/?p=9</guid>
		<description><![CDATA[Many people seem to get a problem with the common error message of Warning: Cannot modify header information - headers already sent by (output started at C:\file.php:1) in C:\file.php on line 4) There are a number of possible reasons for why this might happen Output before the &#60;?php tag There are so many occasions where [...]]]></description>
		<wfw:commentRss>http://www.jaygilford.com/php/headers-already-sent-error-php-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.jaygilford.com @ 2012-02-05 12:31:01 -->
