<?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 PHP Musings</title>
	<atom:link href="http://www.charles-reace.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.charles-reace.com/blog</link>
	<description>Random thoughts about PHP, MySQL, and life in general</description>
	<pubDate>Wed, 03 Dec 2008 22:31:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Comment on CodeIgniter Framework Looks Promising by Sakeo</title>
		<link>http://www.charles-reace.com/blog/2008/11/24/codeigniter-framework-looks-promising/#comment-1732</link>
		<dc:creator>Sakeo</dc:creator>
		<pubDate>Fri, 28 Nov 2008 11:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=135#comment-1732</guid>
		<description>I completely agree with you on the documentation, it was one of the main things that won me over; having solid documentation behind you in any type of project is just great to have.

No 'installation' or command line stuff necessary, either. "It just works", as they say.</description>
		<content:encoded><![CDATA[<p>I completely agree with you on the documentation, it was one of the main things that won me over; having solid documentation behind you in any type of project is just great to have.</p>
<p>No &#8216;installation&#8217; or command line stuff necessary, either. &#8220;It just works&#8221;, as they say.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sub-Domains on Windows localhost by Felix</title>
		<link>http://www.charles-reace.com/blog/2008/10/25/sub-domains-on-windows-localhost/#comment-1730</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Sun, 26 Oct 2008 21:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=131#comment-1730</guid>
		<description>Bummer, it messed up my code :( here's how the /etc/apache2/sites-available/foobar file should look like:
&lt;code&gt;
[VirtualHost *]

	ServerAdmin webmaster@work.localhost
	ServerName work.localhost
	ServerAlias *.work.localhost
	DocumentRoot /var/www/work/
	[Directory /var/www/work/]
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	[/Directory]

	ErrorLog /var/log/apache2/work.error.log
	CustomLog /var/log/apache2/work.access.log combined

[/VirtualHost]
&lt;/code&gt;
&lt;b&gt;Note:&lt;/b&gt; Replace all ' [ ' with '  '.
&lt;b&gt;Note:&lt;/b&gt; The [Directory] tag is needed especially if the new DocumentRoot is outside of /var/www (or the default DocumentRoot, otherwise you will get 401 Access Denied (or something like that).</description>
		<content:encoded><![CDATA[<p>Bummer, it messed up my code :( here&#8217;s how the /etc/apache2/sites-available/foobar file should look like:<br />
<code><br />
[VirtualHost *]</p>
<p>	ServerAdmin <a href="mailto:webmaster@work.localhost">webmaster@work.localhost</a><br />
	ServerName work.localhost<br />
	ServerAlias *.work.localhost<br />
	DocumentRoot /var/www/work/<br />
	[Directory /var/www/work/]<br />
		Options Indexes FollowSymLinks MultiViews<br />
		AllowOverride All<br />
		Order allow,deny<br />
		allow from all<br />
	[/Directory]</p>
<p>	ErrorLog /var/log/apache2/work.error.log<br />
	CustomLog /var/log/apache2/work.access.log combined</p>
<p>[/VirtualHost]<br />
</code><br />
<b>Note:</b> Replace all &#8216; [ ' with '  '.<br />
<b>Note:</b> The [Directory] tag is needed especially if the new DocumentRoot is outside of /var/www (or the default DocumentRoot, otherwise you will get 401 Access Denied (or something like that).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sub-Domains on Windows localhost by Felix</title>
		<link>http://www.charles-reace.com/blog/2008/10/25/sub-domains-on-windows-localhost/#comment-1729</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Sun, 26 Oct 2008 20:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=131#comment-1729</guid>
		<description>How to do the same on Ubuntu (but should work on other Debian-based distros):
1. Run this command:
&lt;code&gt;sudo nano /etc/apache2/sites-available/foobar&lt;/code&gt;
&lt;b&gt;Note:&lt;/b&gt; you can use any text editor for this. I chose nano because it's the default editor that comes with Ubuntu.
2. Type this in the file:
&lt;code&gt;


	ServerAdmin webmaster@foobar.localhost
	ServerName foobar.localhost
	ServerAlias *.foobar.localhost
	DocumentRoot /var/www/foobar/
	
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	

	ErrorLog /var/log/apache2/foobar.error.log
	CustomLog /var/log/apache2/foobar.access.log combined


&lt;/code&gt;
&lt;b&gt;Note:&lt;/b&gt; The  tag is needed especially if the new DocumentRoot is outside of /var/www (or the default DocumentRoot, otherwise you will get 401 Access Denied (or something like that).
3. Run:
&lt;code&gt;sudo nano /etc/hosts&lt;/code&gt;
And add this line:
&lt;code&gt;::1 foobar.localhost&lt;/code&gt;
&lt;b&gt;Note:&lt;/b&gt; If this doesn't work for you, try replacing that line with:
&lt;code&gt;127.0.0.1 foobar.localhost&lt;/code&gt;
4. Run:
&lt;code&gt;sudo a2ensite foobar&lt;/code&gt;
This creates a symlink to the "foobar" file in the /etc/apache2/sites-available in the /etc/apache2/sites-enabled folder, this way letting Apache know you want a new site.
5. Run:
&lt;code&gt;sudo /etc/init.d/apache2 reload&lt;/code&gt;
&lt;b&gt;Note:&lt;/b&gt; Don't worry if you get a warning like "apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName", it's ok :)
6. Go to http://foobar.localhost/ with your favorite browser and voila! :)
&lt;b&gt;Note:&lt;/b&gt; If you never used nano, hit Ctrl+O and Enter to save a file and Ctrl+X to exit.
Have fun :)

(Yeah, I'm a Linux enthusiast :D)</description>
		<content:encoded><![CDATA[<p>How to do the same on Ubuntu (but should work on other Debian-based distros):<br />
1. Run this command:<br />
<code>sudo nano /etc/apache2/sites-available/foobar</code><br />
<b>Note:</b> you can use any text editor for this. I chose nano because it&#8217;s the default editor that comes with Ubuntu.<br />
2. Type this in the file:<br />
<code></p>
<p>	ServerAdmin <a href="mailto:webmaster@foobar.localhost">webmaster@foobar.localhost</a><br />
	ServerName foobar.localhost<br />
	ServerAlias *.foobar.localhost<br />
	DocumentRoot /var/www/foobar/</p>
<p>		Options Indexes FollowSymLinks MultiViews<br />
		AllowOverride All<br />
		Order allow,deny<br />
		allow from all</p>
<p>	ErrorLog /var/log/apache2/foobar.error.log<br />
	CustomLog /var/log/apache2/foobar.access.log combined</p>
<p></code><br />
<b>Note:</b> The  tag is needed especially if the new DocumentRoot is outside of /var/www (or the default DocumentRoot, otherwise you will get 401 Access Denied (or something like that).<br />
3. Run:<br />
<code>sudo nano /etc/hosts</code><br />
And add this line:<br />
<code>::1 foobar.localhost</code><br />
<b>Note:</b> If this doesn&#8217;t work for you, try replacing that line with:<br />
<code>127.0.0.1 foobar.localhost</code><br />
4. Run:<br />
<code>sudo a2ensite foobar</code><br />
This creates a symlink to the &#8220;foobar&#8221; file in the /etc/apache2/sites-available in the /etc/apache2/sites-enabled folder, this way letting Apache know you want a new site.<br />
5. Run:<br />
<code>sudo /etc/init.d/apache2 reload</code><br />
<b>Note:</b> Don&#8217;t worry if you get a warning like &#8220;apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName&#8221;, it&#8217;s ok :)<br />
6. Go to <a href="http://foobar.localhost/" rel="nofollow">http://foobar.localhost/</a> with your favorite browser and voila! :)<br />
<b>Note:</b> If you never used nano, hit Ctrl+O and Enter to save a file and Ctrl+X to exit.<br />
Have fun :)</p>
<p>(Yeah, I&#8217;m a Linux enthusiast :D)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UTF8 in PHP and MySQL by Felix</title>
		<link>http://www.charles-reace.com/blog/2008/10/03/utf8-in-php-and-mysql/#comment-1728</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Mon, 06 Oct 2008 18:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=103#comment-1728</guid>
		<description>&lt;a href="http://znupi.ath.cx/files/Screenshot-1.png" rel="nofollow"&gt;Here's how&lt;/a&gt; :)
Mozilla Firefox 3.0.3 / Ubuntu 8.04
As you can see, the textbox can easily be widened :)</description>
		<content:encoded><![CDATA[<p><a href="http://znupi.ath.cx/files/Screenshot-1.png" rel="nofollow">Here&#8217;s how</a> :)<br />
Mozilla Firefox 3.0.3 / Ubuntu 8.04<br />
As you can see, the textbox can easily be widened :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UTF8 in PHP and MySQL by Charles</title>
		<link>http://www.charles-reace.com/blog/2008/10/03/utf8-in-php-and-mysql/#comment-1727</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Mon, 06 Oct 2008 17:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=103#comment-1727</guid>
		<description>&lt;blockquote cite="Felix"&gt;Off topic: can you make this text box a bit wider? I’m getting a claustrophobic kind of feeling typing here&lt;/blockquote&gt;
How's this?</description>
		<content:encoded><![CDATA[<blockquote cite="Felix"><p>Off topic: can you make this text box a bit wider? I’m getting a claustrophobic kind of feeling typing here</p></blockquote>
<p>How&#8217;s this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UTF8 in PHP and MySQL by Felix</title>
		<link>http://www.charles-reace.com/blog/2008/10/03/utf8-in-php-and-mysql/#comment-1726</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Mon, 06 Oct 2008 16:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=103#comment-1726</guid>
		<description>Interesting :). Here's my experience with encodings and stuff like that (I'm not an expert either):
I built this application which had a php script that ran in the command line and that was connecting to other servers and storing data in a database. This data would contain "funny characters". The problem was not with inserting the data, which worked flawlessly (even though the tables and fields are set to the latin1_swedish_ci collation -- I think that's the default one phpmyadmin uses), but with reading the data. In phpmyadmin I would see the data just like it should appear, but in my own application it appeared incorrectly. I tried everything, utf8_decode(), iconv()m, etc. I was very frustrated and searched the web for hours, and came up with a simple solution:
mysql_query("SET NAMES 'utf8'");
Pretty similar to yours, indeed :P. I should probably convert those tables to utf8_unicode_ci, shouldn't I?
Off topic: can you make this text box a bit wider? I'm getting a claustrophobic kind of feeling typing here :P

Regards,
Felix.

PS: Yes! I'm registered! :)</description>
		<content:encoded><![CDATA[<p>Interesting :). Here&#8217;s my experience with encodings and stuff like that (I&#8217;m not an expert either):<br />
I built this application which had a php script that ran in the command line and that was connecting to other servers and storing data in a database. This data would contain &#8220;funny characters&#8221;. The problem was not with inserting the data, which worked flawlessly (even though the tables and fields are set to the latin1_swedish_ci collation &#8212; I think that&#8217;s the default one phpmyadmin uses), but with reading the data. In phpmyadmin I would see the data just like it should appear, but in my own application it appeared incorrectly. I tried everything, utf8_decode(), iconv()m, etc. I was very frustrated and searched the web for hours, and came up with a simple solution:<br />
mysql_query(&#8221;SET NAMES &#8216;utf8&#8242;&#8221;);<br />
Pretty similar to yours, indeed :P. I should probably convert those tables to utf8_unicode_ci, shouldn&#8217;t I?<br />
Off topic: can you make this text box a bit wider? I&#8217;m getting a claustrophobic kind of feeling typing here :P</p>
<p>Regards,<br />
Felix.</p>
<p>PS: Yes! I&#8217;m registered! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Calculate Age: One-Liner Fun by nrg_alpha</title>
		<link>http://www.charles-reace.com/blog/2008/09/20/calculate-age-one-liner-fun/#comment-1725</link>
		<dc:creator>nrg_alpha</dc:creator>
		<pubDate>Fri, 26 Sep 2008 02:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=96#comment-1725</guid>
		<description>Nice little script. Does indeed remind the rest of us that you can have multiple first and third comma-separated statements. I never made use of this, but can see where it streamlines things.</description>
		<content:encoded><![CDATA[<p>Nice little script. Does indeed remind the rest of us that you can have multiple first and third comma-separated statements. I never made use of this, but can see where it streamlines things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP4 Is Dead; Long Live PHP5&#8230; by Charles</title>
		<link>http://www.charles-reace.com/blog/2008/07/01/php4-is-dead-long-live-php5/#comment-1724</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Sat, 06 Sep 2008 21:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://charles-reace.com/blog/2008/07/01/php4-is-dead-long-live-php5/#comment-1724</guid>
		<description>I've added an image linked to &lt;a href="http://gophp5.org/" rel="nofollow"&gt;GoPHP5.org&lt;/a&gt; to the page header (right beneath Noggin).</description>
		<content:encoded><![CDATA[<p>I&#8217;ve added an image linked to <a href="http://gophp5.org/" rel="nofollow">GoPHP5.org</a> to the page header (right beneath Noggin).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using Akismet to Detect Spam Email by Charles</title>
		<link>http://www.charles-reace.com/blog/2008/09/06/using-akismet-to-detect-spam-email/#comment-1723</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Sat, 06 Sep 2008 18:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=86#comment-1723</guid>
		<description>Quick update: due to a misunderstanding on my part, the API verification will be removed from the constructor and made a separate, stand-alone public function, as it does not need to be executed with each request.</description>
		<content:encoded><![CDATA[<p>Quick update: due to a misunderstanding on my part, the API verification will be removed from the constructor and made a separate, stand-alone public function, as it does not need to be executed with each request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tabbed Ouput with Tidy by nrg_alpha</title>
		<link>http://www.charles-reace.com/blog/2008/09/05/tabbed-ouput-with-tidy/#comment-1722</link>
		<dc:creator>nrg_alpha</dc:creator>
		<pubDate>Sat, 06 Sep 2008 00:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=73#comment-1722</guid>
		<description>Ah.. that explains EVERYTHING :) I was wondering if I had to have that extension installed. Funny thing is, whenever I would call a function that belongs to an extension that is not installed, PHP would simply put up an error message stating that that particular function doesn't exist (or something to that effect).

I also didn't realize that you can omit the last '?&#62;' aspect of the PHP tags for the purposes you mention. Nice to know :)

I definitely see the use for such code snippets.. people hosting blogs / websites on coding tutorials for example would benefit from such a nice and easy formatting system.

Good topic :)</description>
		<content:encoded><![CDATA[<p>Ah.. that explains EVERYTHING :) I was wondering if I had to have that extension installed. Funny thing is, whenever I would call a function that belongs to an extension that is not installed, PHP would simply put up an error message stating that that particular function doesn&#8217;t exist (or something to that effect).</p>
<p>I also didn&#8217;t realize that you can omit the last &#8216;?&gt;&#8217; aspect of the PHP tags for the purposes you mention. Nice to know :)</p>
<p>I definitely see the use for such code snippets.. people hosting blogs / websites on coding tutorials for example would benefit from such a nice and easy formatting system.</p>
<p>Good topic :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
