<?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>[ themattreid ] &#187; PHP</title>
	<atom:link href="http://themattreid.com/wordpress/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://themattreid.com/wordpress</link>
	<description>MySQL DBA &#124; Linux&#039;er</description>
	<lastBuildDate>Sat, 07 Jan 2012 00:22:39 +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>RESTful PHP Web Services &#8211; reviewed</title>
		<link>http://themattreid.com/wordpress/2010/01/21/restful-php-web-services-reviewed/</link>
		<comments>http://themattreid.com/wordpress/2010/01/21/restful-php-web-services-reviewed/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 19:53:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[programing]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[web services]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=268</guid>
		<description><![CDATA[<p>I&#8217;ve been using a lot of RESTful services these days and have been waiting for a good book that is dedicated to the topic. I recently received a copy of &#8216;<a href="http://www.packtpub.com/restful-php-web-services?utm_source=themattreid.com&#038;utm_medium=link&#038;utm_content=blog&#038;utm_campaign=mdb_001781">RESTful PHP Web Service</a>s&#8217;, which does a successful job of outlining proven concepts in current web technology. If you want to learn the methods for creating and consuming RESTful services then you will find many examples in this book. From the architectural plans &#8230; <a href="http://themattreid.com/wordpress/2010/01/21/restful-php-web-services-reviewed/" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using a lot of RESTful services these days and have been waiting for a good book that is dedicated to the topic. I recently received a copy of &#8216;<a href="http://www.packtpub.com/restful-php-web-services?utm_source=themattreid.com&#038;utm_medium=link&#038;utm_content=blog&#038;utm_campaign=mdb_001781">RESTful PHP Web Service</a>s&#8217;, which does a successful job of outlining proven concepts in current web technology. If you want to learn the methods for creating and consuming RESTful services then you will find many examples in this book. From the architectural plans to well thought out code samples, the book covers a lot of ground in a relatively quick read. </p>
<p>The first chapter gives the reader a quick introduction to RESTful services and the most common PHP frameworks in use at the time of writing. I particularly enjoyed the section on the Zend framework due to the explanation of benefits over the other frameworks. The chapter also covers the very basics which include a detailed look at exactly what RESTful services means and what technologies are required to use and benefit from a RESTful architecture. The second chapter gives a quick run down of the various methods in use for consumption of data; these being Curl, several HTTP methods, processing data with XML, DOM, and SimpleXML. After those are covered there is a simple example of consuming services like Flickr using the previous methods. This transitions into many more examples of consuming real world services that any developer would find interesting and exciting for data mashups. </p>
<p>The real meat of the book starts in chapter four where we get into designing the resource utilization systems and then the resource clients in chapter five. Those topics basically go over the nuts and bolts of gathering data, manipulating it, updating it, as well as creating fresh data. We get more instruction and usage examples on the Zend framework in chapter seven where the author gives us information on the controllers, models, and view (MVC model). This would not be too useful without knowing how to debug the code that we&#8217;re using so there is, thankfully, a chapter dedicated to debugging XML building and parsing errors. A couple of short appendixes cover the author&#8217;s own WSO2 web service framework as well as REST Client Classes which should prove useful for writing your own reusable classes. </p>
<p>Overall this book covers the majority of topics that a new developer needs to understand in order to start developing and deploying RESTful code and web services in PHP. From frameworks to consumable service samples, and everything in between, RESTful PHP Web Services comes through in a concise and enjoyable style that will not disappoint. I highly recommend this book for developers that are new to this topic or experienced developers that need a quick refresher course. </p>
]]></content:encoded>
			<wfw:commentRss>http://themattreid.com/wordpress/2010/01/21/restful-php-web-services-reviewed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An easy method for hiding wordpress pages</title>
		<link>http://themattreid.com/wordpress/2009/08/30/an-easy-method-for-hiding-wordpress-pages/</link>
		<comments>http://themattreid.com/wordpress/2009/08/30/an-easy-method-for-hiding-wordpress-pages/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 03:11:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=223</guid>
		<description><![CDATA[<p>I needed to hide a page from the page list &#8211; the header panel that shows all of the main site pages. Problem was that I needed it accessible to users via links but not listed in the main header. This page from a <a title="http://realiventblog.com/2007/04/04/how-to-hide-pages-in-wordpress/" href="http://realiventblog.com/2007/04/04/how-to-hide-pages-in-wordpress/" target="_blank">google search</a> helped me out:<br />
<code><br />
The last way is to hardcode your menu function. WordPress created the menu with this function: wp_list_pages();<br />
You can either remove that function and add your </code>&#8230; <a href="http://themattreid.com/wordpress/2009/08/30/an-easy-method-for-hiding-wordpress-pages/" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>I needed to hide a page from the page list &#8211; the header panel that shows all of the main site pages. Problem was that I needed it accessible to users via links but not listed in the main header. This page from a <a title="http://realiventblog.com/2007/04/04/how-to-hide-pages-in-wordpress/" href="http://realiventblog.com/2007/04/04/how-to-hide-pages-in-wordpress/" target="_blank">google search</a> helped me out:<br />
<code><br />
The last way is to hardcode your menu function. WordPress created the menu with this function: wp_list_pages();<br />
You can either remove that function and add your own links, or add the "exclude" argument to wp_list_pages() like so:<br />
wp_list_pages(exclude=17,38);<br />
</code></p>
<p>So my header.php code ended up looking like so:<br />
<code><br />
$pages = wp_list_pages('sort_column=menu_order&amp;title_li=&amp;echo=0&amp;exclude=377');<br />
$pages = preg_replace('%<a>]+)&gt;%U','</a><a>', $pages);<br />
$pages = str_replace('</a>','', $pages);<br />
echo $pages;<br />
?&gt;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://themattreid.com/wordpress/2009/08/30/an-easy-method-for-hiding-wordpress-pages/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to make an editable data grid using ExtJS</title>
		<link>http://themattreid.com/wordpress/2009/08/05/how-to-make-an-editable-data-grid-using-extjs/</link>
		<comments>http://themattreid.com/wordpress/2009/08/05/how-to-make-an-editable-data-grid-using-extjs/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 20:17:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[ExtJS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=213</guid>
		<description><![CDATA[<p>I&#8217;m not going to go into a great amount of detail here, but I will post the three files required for the process. If you know PHP (this uses the CodeIgniter framework) and JS (this uses the ExtJS framework) then it will make sense. Hopefully this saves people some time and will serve as a basis for a good project. </p>
<p>Model: <a href="http://themattreid.pastebin.com/fd163b0">http://themattreid.pastebin.com/fd163b0</a><br />
View: <a href="http://themattreid.pastebin.com/f2a14ba54">http://themattreid.pastebin.com/f2a14ba54</a><br />
Controller: <a href="http://themattreid.pastebin.com/f40599353">http://themattreid.pastebin.com/f40599353</a>&#8230; <a href="http://themattreid.com/wordpress/2009/08/05/how-to-make-an-editable-data-grid-using-extjs/" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not going to go into a great amount of detail here, but I will post the three files required for the process. If you know PHP (this uses the CodeIgniter framework) and JS (this uses the ExtJS framework) then it will make sense. Hopefully this saves people some time and will serve as a basis for a good project. </p>
<p>Model: <a href="http://themattreid.pastebin.com/fd163b0">http://themattreid.pastebin.com/fd163b0</a><br />
View: <a href="http://themattreid.pastebin.com/f2a14ba54">http://themattreid.pastebin.com/f2a14ba54</a><br />
Controller: <a href="http://themattreid.pastebin.com/f40599353">http://themattreid.pastebin.com/f40599353</a></p>
]]></content:encoded>
			<wfw:commentRss>http://themattreid.com/wordpress/2009/08/05/how-to-make-an-editable-data-grid-using-extjs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Request: What do you want in a OpenSource MySQL Monitoring solution?</title>
		<link>http://themattreid.com/wordpress/2008/11/10/request-what-do-you-want-in-a-opensource-mysql-monitoring-solution/</link>
		<comments>http://themattreid.com/wordpress/2008/11/10/request-what-do-you-want-in-a-opensource-mysql-monitoring-solution/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 00:09:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Monolith]]></category>
		<category><![CDATA[MySQL Server]]></category>
		<category><![CDATA[OLAP - DW]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[change control]]></category>
		<category><![CDATA[CNF]]></category>
		<category><![CDATA[mysql community]]></category>
		<category><![CDATA[MySQL Enterprise]]></category>

		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=77</guid>
		<description><![CDATA[<p>What would you like to see in a free enterprise-grade monitoring system for your daily MySQL needs?I&#8217;m rewriting Monolith &#8211; MySQL DBA Console from the ground up. This will be version 2 and I would like to get some input from the global MySQL community.So far I am going with the following; comment with any improvements/additions.
<ul>
<li>Variable interval polling of server statistics</li>
<li>Over 50 different alerts (see list below)</li>
<li>Graphing of various server statistics (see </li></ul>&#8230; <a href="http://themattreid.com/wordpress/2008/11/10/request-what-do-you-want-in-a-opensource-mysql-monitoring-solution/" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>What would you like to see in a free enterprise-grade monitoring system for your daily MySQL needs?I&#8217;m rewriting Monolith &#8211; MySQL DBA Console from the ground up. This will be version 2 and I would like to get some input from the global MySQL community.So far I am going with the following; comment with any improvements/additions.
<ul>
<li>Variable interval polling of server statistics</li>
<li>Over 50 different alerts (see list below)</li>
<li>Graphing of various server statistics (see list below)</li>
<li>Tuning recommendations with cnf file changes to apply to server</li>
<li>Change  control documents for recommended performance/security tuning</li>
<li>Threshold based alerting with multiple alert groups: info,warn,critical</li>
<li>Sorting/ordering of servers via groups. ie: client -&gt; dev,stage,prod</li>
<li>RSS feeds for each alert group</li>
<li>XML export with user defined fields for external applications (API of sorts)</li>
<li>Slave server alerts, IO thread / SQL thread, seconds behind master (with threshold)</li>
<li>Various general stats: version, system ram size, # of schema, default table type</li>
<li>Ability to view current cnf file from server</li>
<li>Ability to view current global variables as a list</li>
<li>Email / pager reporting for alerts (choose warn/crit alerts to report on)</li>
</ul>
<p><strong>Alerts </strong><em>- can be enabled or disabled for reporting on a per server basis</em>
<ul>
<li>number of connection failures (threshold)</li>
<li>number of connections errors (threshold)</li>
<li>binary logging not enabled</li>
<li>sync_binlog not set</li>
<li>max_used_connections too high compared to max_connections (ratio over 85% utilization)</li>
<li>query cache size too small: improper utilization</li>
<li>query cache size too large: improper utilization</li>
<li>memory usage over 85% of system ram</li>
<li>table scans excessive</li>
<li>tmp table to disk ratio too high</li>
<li>innodb buffer too small</li>
<li>innodb buffer too large (resources can be used elsewhere)</li>
<li>key buffer too large (resources can be used elsewhere)</li>
<li>key buffer too small</li>
<li>sort buffer too small</li>
<li>sort buffer too large (resources can be used elsewhere)</li>
<li>join buffer too small</li>
<li>join buffer too large (resources can be used elsewhere)</li>
<li>open_files_limit too small compared to open_files usage ratio</li>
<li>table locks too high</li>
<li>table cache too small</li>
<li>table cache too large (resources can be used elsewhere)</li>
<li>thread cache too small</li>
<li>thread cache too large (resources can be used elsewhere)</li>
<li>binlog size too small</li>
<li>excessive disk tmp table usage</li>
<li>flush time not zero value</li>
<li>indexes not being utilized properly</li>
<li>innodb doublewrite buffer enabled</li>
<li>innodb flush method not properly set</li>
<li>innodb transaction isolation level not properly set for ACID</li>
<li>innodb log wait time too high</li>
<li>conncurrent insert not set correctly</li>
<li>query cache not enabled</li>
<li>table locks too high</li>
<li>thread cache not enabled</li>
<li>concurrent queries too high (threshold)</li>
<li>binary logs not set to auto-purge</li>
<li>binary logging not enabled</li>
<li>slave not active if server is set to slave</li>
<li>slave sql thread stopped</li>
<li>slave io thread stopped</li>
<li>slave behind master too long (threshold)</li>
<li>slave not set as read-only</li>
<li>slave relay logs not automatically purged</li>
<li>account has global privs</li>
<li>account set to old_password</li>
<li>accounts able to be added with empty password</li>
<li>account has grant option</li>
<li>root can login remotely</li>
<li>root has no password</li>
<li>blank username detected</li>
<li>test database exists</li>
<li>usage user exists</li>
<li>general query log enabled</li>
<li>CPU usage over threshold</li>
<li>Load Average over threshold</li>
</ul>
<p><strong>Graphs </strong><em>- default</em><strong></strong>
<ul>
<li>Query cache utilization, in/out hit ratio</li>
<li>Temp tables usage</li>
<li>Temp files usage</li>
<li>Open tables usage</li>
<li>Thread cached / created</li>
<li>Connections</li>
<li>Query rate</li>
<li>Data size, Index size, overall size</li>
<li>Uptime</li>
<li>CPU usage</li>
<li>I/O usage</li>
<li>Load average</li>
<li>Data transfer in/out</li>
<li>Memory allocation</li>
<li>Swap usage</li>
<li>Slave delay (if configured as a slave)</li>
</ul>
<p>As mentioned before, this is a OSS application that has no license or subscription fees and will be updated on a regular basis. It&#8217;s a mix of PHP for the web side and Perl for the system polling and reporting processes. The installer will be new, web based, and a simple process, much improved from the current method.Please add your comments now, as I am drawing up plans this week for version 2. <img src='http://themattreid.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://themattreid.com/wordpress/2008/11/10/request-what-do-you-want-in-a-opensource-mysql-monitoring-solution/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

