<?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>CodeBlog &#187; PHP</title>
	<atom:link href="http://www.codeblog.co.uk/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codeblog.co.uk</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 21:02:40 +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>Quick fix for the &#8216;Deprecated: Function eregi() is deprecated &#8216; issue / error with phpThumb and PHP 5.3+</title>
		<link>http://www.codeblog.co.uk/2011/08/08/web-development/quick-fix-for-the-deprecated-function-eregi-is-deprecated-issue-error-with-phpthumb-and-php-5-3/</link>
		<comments>http://www.codeblog.co.uk/2011/08/08/web-development/quick-fix-for-the-deprecated-function-eregi-is-deprecated-issue-error-with-phpthumb-and-php-5-3/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 16:49:26 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Fixes & Tweaks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpThumb]]></category>

		<guid isPermaLink="false">http://clients.og-it.com/codeblog/?p=880</guid>
		<description><![CDATA[I recently upgraded a production server to PHP 5.3.6 from a much earlier 5.2.x build and noticed that the process had killed all instances of phpThumb on the server due to the deprecation of the functions ‘eregi’, ‘ereg’, ‘split’ &#38; ‘eregi_replace’. See:- http://php.net/manual/en/migration53.deprecated.php for a full list of functions deprecated since PHP 5.3.0. The messages being output by phpThumb are similar to: Deprecated: Function eregi() is deprecated in /home/test/public_html/phpThumb/phpThumb.php on line 152 The quickest fix is to modify phpThumb.php to suppress the warnings, open the file and change the first few lines from: error_reporting(E_ALL); ini_set('display_errors', '1'); To error_reporting(0); ini_set('display_errors', '0'); &#8230;]]></description>
		<wfw:commentRss>http://www.codeblog.co.uk/2011/08/08/web-development/quick-fix-for-the-deprecated-function-eregi-is-deprecated-issue-error-with-phpthumb-and-php-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PHP to Encrypt, Decrypt, Sign &amp; Verify Data with a .NET generated XML RSA Key</title>
		<link>http://www.codeblog.co.uk/2011/08/02/web-development/using-php-to-encrypt-decrypt-sign-verify-data-with-a-net-generated-xml-rsa-key/</link>
		<comments>http://www.codeblog.co.uk/2011/08/02/web-development/using-php-to-encrypt-decrypt-sign-verify-data-with-a-net-generated-xml-rsa-key/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 19:55:03 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://clients.og-it.com/codeblog/?p=731</guid>
		<description><![CDATA[I&#8217;ve spent a fair amount of time researching how to sign data in PHP with a .NET generated RSA Private key that has been exported in XML format. There are many &#8216;half baked&#8217; solutions out there that can only provide half of the functionality or that use exec or shell_exec to call on other components to get the required outcome. I have been looking for a &#8216;pure&#8217; PHP solution to eliminate the need for extra server requirements such as OpenSSL, etc. Eventually I found the source forge project Pure-PHP which includes an RSA library written by Jim Wiggintons which is &#8230;]]></description>
		<wfw:commentRss>http://www.codeblog.co.uk/2011/08/02/web-development/using-php-to-encrypt-decrypt-sign-verify-data-with-a-net-generated-xml-rsa-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to resolve Fatal error: Class &#8216;mysqli&#8217; not found / Unable to load dynamic library &#8216;c:\PHP\ext\php_mysql.dll&#8217; &#8211; Access is denied.</title>
		<link>http://www.codeblog.co.uk/2008/07/31/web-platforms/how-to-resolve-fatal-error-class-mysqli-not-found-unable-to-load-dynamic-library-cphpextphp_mysqldll-access-is-denied/</link>
		<comments>http://www.codeblog.co.uk/2008/07/31/web-platforms/how-to-resolve-fatal-error-class-mysqli-not-found-unable-to-load-dynamic-library-cphpextphp_mysqldll-access-is-denied/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 10:39:25 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Fixes & Tweaks]]></category>
		<category><![CDATA[Web Platforms]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQLi]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.codeblog.co.uk/2008/07/31/uncategorized/how-to-resolve-fatal-error-class-mysqli-not-found-unable-to-load-dynamic-library-cphpextphp_mysqldll-access-is-denied/</guid>
		<description><![CDATA[After much digging around on the net and of course Google I managed to cobble together a trouble shooting process to find out why I was getting the error message: Fatal error: Class &#8216;mysqli&#8217; not found in E:\mysite\sql.php on line 17 PHP Warning: PHP Startup: Unable to load dynamic library &#8216;c:\PHP\ext\php_mysql.dll&#8217; &#8211; Access is denied. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library &#8216;c:\PHP\ext\php_mysqli.dll&#8217; &#8211; Access is denied. in Unknown on line 0 PHP Fatal error: Class &#8216;mysqli&#8217; not found in E:\mysite\sql.php on line 17 The serverï¿½setupï¿½that I was getting this error on was: &#8230;]]></description>
		<wfw:commentRss>http://www.codeblog.co.uk/2008/07/31/web-platforms/how-to-resolve-fatal-error-class-mysqli-not-found-unable-to-load-dynamic-library-cphpextphp_mysqldll-access-is-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQLi &amp; PHP &#8211; Cannot execute stored procedure twice</title>
		<link>http://www.codeblog.co.uk/2008/07/14/web-development/mysqli-php-cannot-execute-stored-procedure-twice/</link>
		<comments>http://www.codeblog.co.uk/2008/07/14/web-development/mysqli-php-cannot-execute-stored-procedure-twice/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 18:56:56 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Fixes & Tweaks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MySQLi]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.codeblog.co.uk/2008/07/14/uncategorized/mysqli-php-cannot-execute-stored-procedure-twice/</guid>
		<description><![CDATA[Just a quick note to try and stop other peoples misery while using the newer MySQL client (mySQLi) and executing multiple stored procedures. My ENVs: PHP5 / MySQL 5 / Window 2003 Server / mySQLi If you are failing to understand why you can&#8217;t execute a stored procedure twice, here&#8217;s the answer: The Stored Procedure: DELIMITER $$ CREATE PROCEDURE `testdb`.`getCategoryInfo`(thisCatid INT) BEGIN SELECT catid, parentcatid, catname, img FROM cats WHERE catid = thisCatId; END$$ DELIMITER ; The stored procedure we are trying to call (getCategoryInfo()) accepts one input as an integer and will return one row only. The Table The &#8230;]]></description>
		<wfw:commentRss>http://www.codeblog.co.uk/2008/07/14/web-development/mysqli-php-cannot-execute-stored-procedure-twice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get a list of a tables field / column names from MySQL using PHP &#8211; getFieldNames() Function</title>
		<link>http://www.codeblog.co.uk/2008/05/13/web-development/how-to-get-a-list-of-a-tables-field-column-names-from-mysql-using-php-getfieldnames-function/</link>
		<comments>http://www.codeblog.co.uk/2008/05/13/web-development/how-to-get-a-list-of-a-tables-field-column-names-from-mysql-using-php-getfieldnames-function/#comments</comments>
		<pubDate>Tue, 13 May 2008 11:09:38 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.codeblog.co.uk/2008/05/13/uncategorized/how-to-get-a-list-of-a-tables-field-column-names-from-mysql-using-php-getfieldnames-function/</guid>
		<description><![CDATA[A simple function to replicate the funcationality of the depreciated mysql_list_fields() function. It returns a simple array with a numeric index of the column / field names. $database &#8211; String &#8211; The database you want to use $connect_string &#8211; String &#8211; Your connection string $table &#8211; String &#8211; The name of the table you wish to list the fields from [code lang="php"] function getFieldNames($database,$connect_string,$table){ $query_getfields = "SHOW COLUMNS FROM ".$table; $getfields = mysql_query($query_getfields, $connect_string) or die(mysql_error()); $row_getfields = mysql_fetch_assoc($getfields); $all_getfields = mysql_query($query_getfields); $fields = array(); do { array_push($fields,$row_getfields['Field']); } while($row_getfields = mysql_fetch_assoc($getfields)); return $fields; }[/code]]]></description>
		<wfw:commentRss>http://www.codeblog.co.uk/2008/05/13/web-development/how-to-get-a-list-of-a-tables-field-column-names-from-mysql-using-php-getfieldnames-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to pipe logs from Apache to PHP / How to seperate Apache log files with PHP</title>
		<link>http://www.codeblog.co.uk/2008/03/06/web-platforms/how-to-pipe-logs-from-apache-to-php/</link>
		<comments>http://www.codeblog.co.uk/2008/03/06/web-platforms/how-to-pipe-logs-from-apache-to-php/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 17:30:29 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[Web Platforms]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.codeblog.co.uk/2008/03/06/php/how-to-pipe-logs-from-apache-to-php/</guid>
		<description><![CDATA[I recently needed to do this for a client to customise and merge the logged data from Apache into a presentable format. A by-product of this was the ability to also roll the log file on a daily basis.I found limited information regarding how to do this most of which were methods that were faulty or out dated. So to help out fellow Googlers and spread light on a few PHP functions that aren&#8217;t commonly used I thought I&#8217;d put up a brief guide on how to do it. My test and live systems are running PHP 5.2.5 and Apache &#8230;]]></description>
		<wfw:commentRss>http://www.codeblog.co.uk/2008/03/06/web-platforms/how-to-pipe-logs-from-apache-to-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP: How to insert value into array</title>
		<link>http://www.codeblog.co.uk/2006/07/13/web-development/php-how-to-insert-value-into-array/</link>
		<comments>http://www.codeblog.co.uk/2006/07/13/web-development/php-how-to-insert-value-into-array/#comments</comments>
		<pubDate>Thu, 13 Jul 2006 22:52:00 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.codeblog.co.uk/?p=15</guid>
		<description><![CDATA[There are two &#8216;main&#8217; forms of arrays within PHP, these are numerical (or zero based) and associative arrays. Creating a new array The code below demonstrates creating a new array: $arr = new array(); This is the same for numerical and associative arrays. Numerical Arrays You can think of numerical arrays as collections of variables (strings, integers, etc) that are index by a number. Adding to a numerical array We can add to a numerical array in three ways: $arr = new array("Value 1","Value 2");    //Create the array &#38; add the values var_dump($arr); //Print the contents of the array to &#8230;]]></description>
		<wfw:commentRss>http://www.codeblog.co.uk/2006/07/13/web-development/php-how-to-insert-value-into-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

