<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for NickAWilliams.com</title>
	<atom:link href="http://www.nickawilliams.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nickawilliams.com</link>
	<description>For everything Nick!</description>
	<pubDate>Thu, 11 Mar 2010 15:59:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>Comment on The New .phar PHP Package by Lenguajes X &#187; Simular paquetes en PHP</title>
		<link>http://www.nickawilliams.com/2008/09/04/the-new-phar-php-package/#comment-60</link>
		<dc:creator>Lenguajes X &#187; Simular paquetes en PHP</dc:creator>
		<pubDate>Tue, 10 Nov 2009 20:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickawilliams.com/?p=29#comment-60</guid>
		<description>[...] script que nos permite cargar paquetes al estilo Java desde PHP. Aunque ya existen los phar, que es un paquete de PHP, esto puede resultar una posibilidad o al menos un método a tener en [...]</description>
		<content:encoded><![CDATA[<p>[...] script que nos permite cargar paquetes al estilo Java desde PHP. Aunque ya existen los phar, que es un paquete de PHP, esto puede resultar una posibilidad o al menos un método a tener en [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New .phar PHP Package by Lee</title>
		<link>http://www.nickawilliams.com/2008/09/04/the-new-phar-php-package/#comment-51</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Tue, 17 Feb 2009 05:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickawilliams.com/?p=29#comment-51</guid>
		<description>As Pablo mentiond, you can call Phar::webPhar(), Phar::mungServer and Phar::interceptFileFuncs() to make a .phar a complete web application.

Phar::webPhar() actually installs a front controller into the .phar that makes it painless.

Phar::mungServer() fixes up the $_SERVER global

Phar::interceptFileFuncs() will make relative references inside the .phar properly point back into the .phar</description>
		<content:encoded><![CDATA[<p>As Pablo mentiond, you can call Phar::webPhar(), Phar::mungServer and Phar::interceptFileFuncs() to make a .phar a complete web application.</p>
<p>Phar::webPhar() actually installs a front controller into the .phar that makes it painless.</p>
<p>Phar::mungServer() fixes up the $_SERVER global</p>
<p>Phar::interceptFileFuncs() will make relative references inside the .phar properly point back into the .phar</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New .phar PHP Package by Pablo Viquez</title>
		<link>http://www.nickawilliams.com/2008/09/04/the-new-phar-php-package/#comment-41</link>
		<dc:creator>Pablo Viquez</dc:creator>
		<pubDate>Tue, 30 Sep 2008 00:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickawilliams.com/?p=29#comment-41</guid>
		<description>I did a presentation about PHAR for the office. I made available my slides here: http://www.pabloviquez.com/2008/09/phar-files/

In case you're interested.</description>
		<content:encoded><![CDATA[<p>I did a presentation about PHAR for the office. I made available my slides here: <a href="http://www.pabloviquez.com/2008/09/phar-files/" rel="nofollow">http://www.pabloviquez.com/2008/09/phar-files/</a></p>
<p>In case you&#8217;re interested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New .phar PHP Package by Nick Williams&#8217; Blog: The New .phar PHP Package : Dragonfly Networks</title>
		<link>http://www.nickawilliams.com/2008/09/04/the-new-phar-php-package/#comment-40</link>
		<dc:creator>Nick Williams&#8217; Blog: The New .phar PHP Package : Dragonfly Networks</dc:creator>
		<pubDate>Thu, 25 Sep 2008 10:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickawilliams.com/?p=29#comment-40</guid>
		<description>[...] a quick post to his blog, Nick Williams points out a very handy extension for PHP - [...]</description>
		<content:encoded><![CDATA[<p>[...] a quick post to his blog, Nick Williams points out a very handy extension for PHP - [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New .phar PHP Package by nick</title>
		<link>http://www.nickawilliams.com/2008/09/04/the-new-phar-php-package/#comment-39</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Wed, 24 Sep 2008 21:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickawilliams.com/?p=29#comment-39</guid>
		<description>That's great to hear! I've been thinking about using this package in my next project, and it's sounding more and more viable given how flexible it seems to be.</description>
		<content:encoded><![CDATA[<p>That&#8217;s great to hear! I&#8217;ve been thinking about using this package in my next project, and it&#8217;s sounding more and more viable given how flexible it seems to be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New .phar PHP Package by Pablo</title>
		<link>http://www.nickawilliams.com/2008/09/04/the-new-phar-php-package/#comment-38</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Wed, 24 Sep 2008 21:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickawilliams.com/?p=29#comment-38</guid>
		<description>Acctually, the performance is pretty good, there's no big impact, and you can use with APC to do some code cache.

BTW, the PEAR package now comes as a Phar.

Regarding the the phar over http, it's very easy, just add the application type to your apache configuration, the phars are designed to run out of the box, more if you use Phar::webphar on your stub.</description>
		<content:encoded><![CDATA[<p>Acctually, the performance is pretty good, there&#8217;s no big impact, and you can use with APC to do some code cache.</p>
<p>BTW, the PEAR package now comes as a Phar.</p>
<p>Regarding the the phar over http, it&#8217;s very easy, just add the application type to your apache configuration, the phars are designed to run out of the box, more if you use Phar::webphar on your stub.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Patterns, Part I by xrado</title>
		<link>http://www.nickawilliams.com/2007/09/16/hello-world/#comment-37</link>
		<dc:creator>xrado</dc:creator>
		<pubDate>Wed, 24 Sep 2008 20:59:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-37</guid>
		<description>i see, so if i have defined $DB for a global db connection and this a know rule anyone should stick to it, that wont be a problem? ..maybe bad pratice but shorter code  ...or there are other bad sides?</description>
		<content:encoded><![CDATA[<p>i see, so if i have defined $DB for a global db connection and this a know rule anyone should stick to it, that wont be a problem? ..maybe bad pratice but shorter code  &#8230;or there are other bad sides?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New .phar PHP Package by nick</title>
		<link>http://www.nickawilliams.com/2008/09/04/the-new-phar-php-package/#comment-36</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Wed, 24 Sep 2008 20:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickawilliams.com/?p=29#comment-36</guid>
		<description>From what I've been able to find, there isn't any mention of a way to do that. I'll update my post if I run across anything though.

As a workaround, if you're using Apache you could do a mod_rewrite and watch for URLs with .phar in them. Then you could pass the URL contents to a PHP script that could in-turn open the file for you.</description>
		<content:encoded><![CDATA[<p>From what I&#8217;ve been able to find, there isn&#8217;t any mention of a way to do that. I&#8217;ll update my post if I run across anything though.</p>
<p>As a workaround, if you&#8217;re using Apache you could do a mod_rewrite and watch for URLs with .phar in them. Then you could pass the URL contents to a PHP script that could in-turn open the file for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Patterns, Part I by nick</title>
		<link>http://www.nickawilliams.com/2007/09/16/hello-world/#comment-35</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Wed, 24 Sep 2008 20:43:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-35</guid>
		<description>The problem with using global variables is that for larger applications you are opening yourself up to problems that are very difficult to trace (specifically, naming collisions).Declaring a global $DB variable means that from that point forward, nowhere else in your entire application can you use the variable $DB for anything else. If you do by mistake, you could very easily run into problems that aren't immediately apparrent.

You won't get an error, but what happens if another piece of code uses it expecting a string but getting a database connection instead?  This is especially a problem when more than one person is writing code for the same project. While you might remember that you've already used $DB, someone else on your dev team might not know that and  create $DB for their own purposes. This problem also results from the re-use of variables, which is also generally a big no-no.</description>
		<content:encoded><![CDATA[<p>The problem with using global variables is that for larger applications you are opening yourself up to problems that are very difficult to trace (specifically, naming collisions).Declaring a global $DB variable means that from that point forward, nowhere else in your entire application can you use the variable $DB for anything else. If you do by mistake, you could very easily run into problems that aren&#8217;t immediately apparrent.</p>
<p>You won&#8217;t get an error, but what happens if another piece of code uses it expecting a string but getting a database connection instead?  This is especially a problem when more than one person is writing code for the same project. While you might remember that you&#8217;ve already used $DB, someone else on your dev team might not know that and  create $DB for their own purposes. This problem also results from the re-use of variables, which is also generally a big no-no.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Patterns, Part I by xrado</title>
		<link>http://www.nickawilliams.com/2007/09/16/hello-world/#comment-34</link>
		<dc:creator>xrado</dc:creator>
		<pubDate>Wed, 24 Sep 2008 20:26:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-34</guid>
		<description>what if u say global $DB; and you can have connection available any where, is something wrong with that?</description>
		<content:encoded><![CDATA[<p>what if u say global $DB; and you can have connection available any where, is something wrong with that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
