<?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>Resident Geek &#187; PHP</title> <atom:link href="http://www.danielrs.com/tag/php/feed/" rel="self" type="application/rss+xml" /><link>http://www.danielrs.com</link> <description>The weblog of Daniel Smith.</description> <lastBuildDate>Thu, 19 Jan 2012 19:30:50 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>AJAX and PHP</title><link>http://www.danielrs.com/2009/02/19/ajax-and-php/</link> <comments>http://www.danielrs.com/2009/02/19/ajax-and-php/#comments</comments> <pubDate>Thu, 19 Feb 2009 18:02:11 +0000</pubDate> <dc:creator>Daniel Smith</dc:creator> <category><![CDATA[Computing]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[AJAX]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[PHP]]></category> <guid
isPermaLink="false">http://www.danielrs.com/?p=102</guid> <description><![CDATA[The second book in my series of reviews is AJAX and PHP by Cristian Darie, a book that takes us on a journey through a now MUST when you develop web applications. If you are developing anything on the web platform page refreshes are a thing of the past, integrating AJAX is now a standard. This book will help give you the basics on the interaction between AJAX and PHP. This book covers the nitty gritty of JavaScript and their implementations, not using a JS Framework like Prototype. This book will give you a great background in how AJAX functions work in most of the popular frameworks and allow you to build great Web 2.0 application without the need for them. The last chapter however does talk about Drag and Drop using script.aculo.us which is built on Prototype. Some things that can be helpful in this book however include, using the Document Object Model, DOM and CSS, Charting using SVG, and AJAX RSS Readers. Good book overall if you are looking to build apps without frameworks. Nice job Packt Publishing]]></description> <content:encoded><![CDATA[<p><a
href="http://www.danielrs.com/wordpress/wp-content/uploads/2009/02/1904811825.jpg"><img
src="http://www.danielrs.com/wordpress/wp-content/uploads/2009/02/1904811825-243x300.jpg" alt="AJAX and PHP" title="AJAX and PHP" width="243" height="300" class="alignleft size-medium wp-image-201" /></a>The second book in my series of reviews is <em>AJAX and PHP</em> by Cristian Darie, a book that takes us on a journey through a now MUST when you develop web applications.  If you are developing anything on the web platform page refreshes are a thing of the past, integrating AJAX is now a standard.  This book will help give you the basics on the interaction between AJAX and PHP.  This book covers the nitty gritty of JavaScript and their implementations, not using a JS Framework like Prototype.</p><p>This book will give you a great background in how AJAX functions work in most of the popular frameworks and allow you to build great Web 2.0 application without the need for them.  The last chapter however does talk about Drag and Drop using <a
href="http://script.aculo.us/">script.aculo.us</a> which is built on <a
href="http://prototypejs.org/">Prototype</a>.</p><p>Some things that can be helpful in this book however include, using the Document Object Model, DOM and CSS, Charting using SVG, and AJAX RSS Readers.  Good book overall if you are looking to build apps without frameworks.  Nice job <a
href="http://packtpub.com">Packt Publishing</a></p> ]]></content:encoded> <wfw:commentRss>http://www.danielrs.com/2009/02/19/ajax-and-php/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Object-Oriented Programming with PHP5</title><link>http://www.danielrs.com/2008/08/25/object-oriented-programming-with-php5/</link> <comments>http://www.danielrs.com/2008/08/25/object-oriented-programming-with-php5/#comments</comments> <pubDate>Mon, 25 Aug 2008 17:27:42 +0000</pubDate> <dc:creator>Daniel Smith</dc:creator> <category><![CDATA[Computing]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[Book Review]]></category> <category><![CDATA[OOP]]></category> <category><![CDATA[PHP]]></category> <guid
isPermaLink="false">http://www.danielrs.com/?p=59</guid> <description><![CDATA[So as some of you already know, in my venture to keep up on the development community and trends, I have started to review books for Packt Publishing. They have sent me a few books to read and review, and I will be posting them to my blog for everyone to read. I have picked books from them that I believe are topics worth exploring and actually reading from a book (and not just finding a resource online). The first book that was delivered is the one that this post is dedicated to. Object-Oriented Programming with PHP5 by Hasin Hayder was picked to go over what I believe to be the base of successfully programming in PHP. Object oriented programming is not an option anymore when working in this business. So if you have been stuck as a procedural programming in PHP it&#8217;s time to remedy that and apply some new (well not really new) techniques and master the language. Hayder begins the book off with exactly that, discussing and demonstrating the differences between Procedural PHP and Object Oriented PHP. I believe this knowledge to be essential to start your OO voyage. Pay attention to examples in this chapter as they give some good feedback on what cases OO is necessary. Hayder also explains the differences between PHP4 and PHP5&#8242;s OO approach for anyone who has PHP4 systems still in play. After that Chapter 2 goes into the nitty gritty basics of using OOP in PHP, including a sections on using interfaces and abstract classes. The next chapter that sparked some interest is the chapter on Design Patterns, including some of my favorites: Singleton Pattern, Lazy Loading, and Adaptor Pattern. This is a must read if you will be developing frameworks or working with some of the more modern frameworks like Zend Framework. Here at NFi Studios we do framework development on top of Zend and commonly use some of these patterns. Another hot topic over at work is Unit Testing, which is covered briefly in Chapter 5, I recommend reading this chapter and checking out the section on TDD (Test Driven Development), and the brief section on PHPUnit. I do however wish this section was a little bigger, but this is a book on OOP and I guess I could get a book on Unit Testing later on. Other topics covered in this book include PDO (which is a database staple of Zend Framework), XML and MVC (which is the most popular architectural pattern in the PHP web development world). The books strong points are its definitions of OO concepts and examples given about them. So if you have a brief understanding of Object Oriented Programming but don&#8217;t understand all of the concepts, this book is for you. For a good yet shorter read on PHP techniques using OOP I recommend this book. It gives you a good synopsis of big topics and gives you the ability to dive into bigger more complex books and some of the web resources and API&#8217;s out there.]]></description> <content:encoded><![CDATA[<p>So as some of you already know, in my venture to keep up on the development community and trends, I have started to review books for <a
href="http://www.packtpub.com">Packt Publishing</a>.  They have sent me a few books to read and review, and I will be posting them to my blog for everyone to read.  I have picked books from them that I believe are topics worth exploring and actually reading from a book (and not just finding a resource online).</p><p><a
href="http://www.packtpub.com/oop-php-5/book"><img
src="http://www.danielrs.com/wordpress/wp-content/uploads/2008/06/oopwithphp5.jpg" alt="" title="Object-Oriented Programming with PHP5" width="118" height="150" class="alignleft size-thumbnail wp-image-60" /></a></p><p>The first book that was delivered is the one that this post is dedicated to. <em>Object-Oriented Programming with PHP5</em> by Hasin Hayder was picked to go over what I believe to be the base of successfully programming in PHP.  Object oriented programming is not an option anymore when working in this business.  So if you have been stuck as a procedural programming in PHP it&#8217;s time to remedy that and apply some new (well not really new) techniques and master the language.<span
id="more-59"></span></p><p>Hayder begins the book off with exactly that, discussing and demonstrating the differences between Procedural PHP and Object Oriented PHP.  I believe this knowledge to be essential to start your OO voyage.  Pay attention to examples in this chapter as they give some good feedback on what cases OO is necessary.  Hayder also explains the differences between PHP4 and PHP5&#8242;s OO approach for anyone who has PHP4 systems still in play.  After that Chapter 2 goes into the nitty gritty basics of using OOP in PHP, including a sections on using interfaces and abstract classes.</p><p>The next chapter that sparked some interest is the chapter on Design Patterns, including some of my favorites: Singleton Pattern, Lazy Loading, and Adaptor Pattern.  This is a must read if you will be developing frameworks or working with some of the more modern frameworks like <a
href="http://framework.zend.com">Zend Framework</a>.  Here at <a
href="http://nfistudios.com">NFi Studios</a> we do framework development on top of Zend and commonly use some of these patterns.</p><p>Another hot topic over at work is Unit Testing, which is covered briefly in Chapter 5, I recommend reading this chapter and checking out the section on TDD (Test Driven Development), and the brief section on PHPUnit.  I do however wish this section was a little bigger, but this is a book on OOP and I guess I could get a book on Unit Testing later on.</p><p>Other topics covered in this book include PDO (which is a database staple of Zend Framework), XML and MVC (which is the most popular architectural pattern in the PHP web development world).  The books strong points are its definitions of OO concepts and examples given about them.  So if you have a brief understanding of Object Oriented Programming but don&#8217;t understand all of the concepts, this book is for you.</p><p>For a good yet shorter read on PHP techniques using OOP I recommend this book.  It gives you a good synopsis of big topics and gives you the ability to dive into bigger more complex books and some of the web resources and API&#8217;s out there.</p> ]]></content:encoded> <wfw:commentRss>http://www.danielrs.com/2008/08/25/object-oriented-programming-with-php5/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>DCI Atlanta</title><link>http://www.danielrs.com/2008/07/26/dci-atlanta/</link> <comments>http://www.danielrs.com/2008/07/26/dci-atlanta/#comments</comments> <pubDate>Sat, 26 Jul 2008 06:35:03 +0000</pubDate> <dc:creator>Daniel Smith</dc:creator> <category><![CDATA[Computing]]></category> <category><![CDATA[Life]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Atlanta]]></category> <category><![CDATA[Drum Corps]]></category> <category><![CDATA[jazz]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Santa Clara Vanguard]]></category> <guid
isPermaLink="false">http://www.danielrs.com/?p=66</guid> <description><![CDATA[So I am in the car right now heading to Atlanta to see the Drum Corps International Southeastern Championships! I am very excited. Danny, Cristina, Jason and myself departed Orlando at 12 midnight and are currently in route. I hope to have an opportunity to post after the show tomorrow night about my thoughts. I went to DCI Orlando and witnessed the upset of Caroline Crown over the Cadets, which in my opinion was well warranted. But this is the first time I will hear or see any of the corps from the Western part of the United States. I am also very excited to see the performance of the Santa Clara Vanguard which my friend Taylor is marching. This trip should be a blast. I decided since I am staying awake to keep Danny company (he is driving) that I would get out the laptop do some work and then write a blog post. I did about 2 hours of coding and now decided to write this post. In other news Packt Publishing sent me a few PHP books to review. I have read them and will be posting my reviews on this site and on Amazon. So if you are interested in some new PHP books check out my reviews later on. Well my rapid typing is drowbing out the sound of jazz coming from the radio.]]></description> <content:encoded><![CDATA[<p>So I am in the car right now heading to Atlanta to see the Drum Corps International Southeastern Championships!   I am very excited.  Danny, Cristina, Jason and myself departed Orlando at 12 midnight and are currently in route.  I hope to have an opportunity to post after the show tomorrow night about my thoughts.</p><p>I went to DCI Orlando and witnessed the upset of Caroline Crown over the Cadets, which in my opinion was well warranted.  But this is the first time I will hear or see any of the corps from the Western part of the United States.  I am also very excited to see the performance of the Santa Clara Vanguard which my friend Taylor is marching.</p><p>This trip should be a blast.  I decided since I am staying awake to keep Danny company (he is driving) that I would get out the laptop do some work and then write a blog post.  I did about 2 hours of coding and now decided to write this post.</p><p>In other news Packt Publishing sent me a few PHP books to review.  I have read them and will be posting my reviews on this site and on Amazon.  So if you are interested in some new PHP books check out my reviews later on.</p><p>Well my rapid typing is drowbing out the sound of jazz coming from the radio.</p> ]]></content:encoded> <wfw:commentRss>http://www.danielrs.com/2008/07/26/dci-atlanta/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>No&#8230;I&#8217;m still alive!</title><link>http://www.danielrs.com/2008/06/05/noim-still-alive/</link> <comments>http://www.danielrs.com/2008/06/05/noim-still-alive/#comments</comments> <pubDate>Thu, 05 Jun 2008 21:53:30 +0000</pubDate> <dc:creator>Daniel Smith</dc:creator> <category><![CDATA[Computing]]></category> <category><![CDATA[Kappa Kappa Psi]]></category> <category><![CDATA[Life]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Civilization]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Summer]]></category> <guid
isPermaLink="false">http://www.danielrs.com/?p=58</guid> <description><![CDATA[So I haven&#8217;t posted in a while and I figured I should quickly post with a catch up. Work is going good, a lot of work to get done, but we are accomplishing a lot of really cool things over here. I have taken on a task of reviewing programming books, I have two books in my hands right now, I have finished one and am working on the other. Stay tuned for reviews on my site of them. Summer is nice, I actually missed the warm weather, but not getting sunburned. Florida Day was this past weekend, and it was really nice to see a lot of old friends and make some new ones. I sat out by the pool most of Saturday, and then on Sunday I went to the beach. It is not a good idea to get burned at the pool and then decide to goto the beach the next day. But it was worth it. It was a lot of fun and I am very happy that I went. With being so busy lately I haven&#8217;t had time to hang with some of my friends, but I promise that I am working harder to correct that. On a slightly geekier note. I have been addicted to one computer game since I was really young. I love the Sid Meier&#8217;s Civilization series. I have Civilization 4 for Mac and play it regularly when I have some free time. I also enjoy playing Age of Empires 3 (thanks to my roommate). But the exciting news is that Civilization Revolutions is being released as a console game for XBox 360. So I am very excited to pickup a copy on June 8th. Yay! Well I hope everyone is well. I hope to write something a little more geeky in the coming days!]]></description> <content:encoded><![CDATA[<p>So I haven&#8217;t posted in a while and I figured I should quickly post with a catch up.  Work is going good, a lot of work to get done, but we are accomplishing a lot of really cool things over here.  I have taken on a task of reviewing programming books,  I have two books in my hands right now, I have finished one and am working on the other.  Stay tuned for reviews on my site of them.  Summer is nice, I actually missed the warm weather, but not getting sunburned.  Florida Day was this past weekend, and it was really nice to see a lot of old friends and make some new ones.  I sat out by the pool most of Saturday, and then on Sunday I went to the beach.  It is not a good idea to get burned at the pool and then decide to goto the beach the next day.  But it was worth it.  It was a lot of fun and I am very happy that I went.  With being so busy lately I haven&#8217;t had time to hang with some of my friends, but I promise that I am working harder to correct that.</p><p>On a slightly geekier note.  I have been addicted to one computer game since I was really young.  I love the Sid Meier&#8217;s Civilization series.  I have Civilization 4 for Mac and play it regularly when I have some free time.  I also enjoy playing Age of Empires 3 (thanks to my roommate).  But the exciting news is that Civilization Revolutions is being released as a console game for XBox 360.  So I am very excited to pickup a copy on June 8th.  Yay!</p><p>Well I hope everyone is well.  I hope to write something a little more geeky in the coming days!</p> ]]></content:encoded> <wfw:commentRss>http://www.danielrs.com/2008/06/05/noim-still-alive/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Orlando PHP</title><link>http://www.danielrs.com/2008/04/07/orlando-php/</link> <comments>http://www.danielrs.com/2008/04/07/orlando-php/#comments</comments> <pubDate>Mon, 07 Apr 2008 15:19:20 +0000</pubDate> <dc:creator>Daniel Smith</dc:creator> <category><![CDATA[Computing]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[OrlandoPHP]]></category> <category><![CDATA[PHP]]></category> <guid
isPermaLink="false">http://www.danielrs.com/?p=49</guid> <description><![CDATA[I am pleased to let everyone know about an Orlando PHP Users Group. Some of us in the developer community have re-formed this group to help build a better PHP community and better the networking between us. The first meeting will on April 22nd on the campus of Devry University @ Millenia from 7 &#8211; 9 pm. Please visit the website orlandophp.org for more information. If you are a PHP developer in the Central Florida Area, or want to learn this is a great chance to hone your skills, or develop some new ones, and really network with other developers in the Central Florida Area. Look forward to seeing you there.]]></description> <content:encoded><![CDATA[<p>I am pleased to let everyone know about an Orlando PHP Users Group.  Some of us in the developer community have re-formed this group to help build a better PHP community and better the networking between us.  The first meeting will on April 22nd on the campus of Devry University @ Millenia from 7 &#8211; 9 pm.  Please visit the website <a
href="http://orlandophp.org">orlandophp.org</a> for more information.  If you are a PHP developer in the Central Florida Area, or want to learn this is a great chance to hone your skills, or develop some new ones, and really network with other developers in the Central Florida Area.  Look forward to seeing you there.</p> ]]></content:encoded> <wfw:commentRss>http://www.danielrs.com/2008/04/07/orlando-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Zend Framework 1.5 Released</title><link>http://www.danielrs.com/2008/03/17/zend-framework-15-released/</link> <comments>http://www.danielrs.com/2008/03/17/zend-framework-15-released/#comments</comments> <pubDate>Mon, 17 Mar 2008 15:27:28 +0000</pubDate> <dc:creator>Daniel Smith</dc:creator> <category><![CDATA[Computing]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Zend Framework]]></category> <guid
isPermaLink="false">http://www.danielrs.com/2008/03/17/zend-framework-15-released/</guid> <description><![CDATA[Zend has finally released the 1.5 version of their Framework. I have been using their Release candidates for a little over a month now and am very excited that they have hit this milestone. Check out http://framework.zend.com to download the framework, and read tutorials on setting it up and using it. They also have video tutorials. One bitt of advice after briefly reading their new Quick Start Guide. The author has us using &#8216;require_once&#8217; on his controller class files, where instead we can better use the Zend_Loader which is instantiated in your bootstrap file, to autoload the classes, that way you call them anywhere in your project, without worrying about loading them. Here is the original code: IndexController.php require_once 'Zend/Controller/Action.php'; class IndexController extends Zend_Controller_Action { public function indexAction() { } } We can remove the &#8216;require_once&#8217; line, and then we need to set up the Zend Autoloader which can be done in your bootstrap file as follows: index.php ... require_once 'Zend/Loader.php'; Zend_Loader::registerAutoload(); ... I am not saying that my way is the &#8216;right&#8217; way, but this might help streamline the design of your project, and remove some un-necessary &#8216;includes&#8217;. You can also load a class using the Zend_Loader by calling: ... Zend_Loader::loadClass('CLASS NAME'); ... All of the tutorials are great. Maurice Fonk has some great insight into ZF, and has a great article on Integrating Smarty Templating Engine into ZF. Rob Allen&#8217;s blog also has some great stuff.]]></description> <content:encoded><![CDATA[<p>Zend has finally released the 1.5 version of their Framework.  I have been using their Release candidates for   a little over a month now and am very excited that they have hit this milestone.  Check out <a
href="http://framework.zend.com" title="Zend Framework">http://framework.zend.com</a> to download the framework, and read tutorials on setting it up and using it.  They   also have video tutorials.  One bitt of advice after briefly reading their new <a
href="http://framework.zend.com/wiki/display/ZFDEV/Official+ZF+QuickStart" title="Zend Framework Quick Start">Quick Start Guide</a>. <span
id="more-33"></span>The author has us using &#8216;require_once&#8217; on his controller class files, where instead we can better use the Zend_Loader which is instantiated in your bootstrap file, to autoload the classes, that way you call them anywhere in your project, without worrying about loading them.</p><p>Here is the original code:</p><p>IndexController.php</p><pre name="code" class="php">
require_once 'Zend/Controller/Action.php';
class IndexController extends Zend_Controller_Action
{
    public function indexAction()
    {
    }
}
</pre><p>We can remove the &#8216;require_once&#8217; line, and then we need to set up the Zend Autoloader which can be done in your bootstrap file as follows:</p><p>index.php</p><pre name="code" class="php">
...
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
...
</pre><p>I am not saying that my way is the &#8216;right&#8217; way, but this might help streamline the design of your project, and remove some un-necessary &#8216;includes&#8217;.  You can also load a class using the Zend_Loader by calling:</p><pre name="code" class="php">
...
Zend_Loader::loadClass('CLASS NAME');
...
</pre><p>All of the tutorials are great. <a
href="http://naneau.nl" title="Naneau">Maurice Fonk</a> has some great insight into ZF, and has a great article on <a
href="http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/" title="Using Smarty with ZF">Integrating Smarty Templating Engine into ZF</a>. <a
href="http://akrabat.com/">Rob Allen&#8217;s blog</a> also has some great stuff.</p> ]]></content:encoded> <wfw:commentRss>http://www.danielrs.com/2008/03/17/zend-framework-15-released/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
