<?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>Scurvy Jake&#039;s Pirate Blog &#187; PHP</title>
	<atom:link href="http://bogomip.net/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://bogomip.net/blog</link>
	<description>Rated arrrr for Piracy</description>
	<lastBuildDate>Tue, 22 May 2012 21:31:32 +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>Opcode Caching</title>
		<link>http://bogomip.net/blog/2010/01/21/opcode-caching/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=opcode-caching</link>
		<comments>http://bogomip.net/blog/2010/01/21/opcode-caching/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 01:02:47 +0000</pubDate>
		<dc:creator>Scurvy Jake</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://bogomip.net/blog/?p=4060</guid>
		<description><![CDATA[I'm testing out an opcode cacher (xcache, if you're interested) for this site before deploying it to production servers. It should accelerate my PHP scripts, but only time (and you) can tell. Let me know if things are snappier, if you even notice&#8230;]]></description>
			<content:encoded><![CDATA[<p>I'm testing out an opcode cacher (<a href="http://xcache.lighttpd.net/">xcache</a>, if you're interested) for this site before deploying it to production servers. It should accelerate my PHP scripts, but only time (and you) can tell. Let me know if things are snappier, if you even notice&#8230;</p>
<img src="http://bogomip.net/blog/16cfc4b3/266bb3ea/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" />]]></content:encoded>
			<wfw:commentRss>http://bogomip.net/blog/2010/01/21/opcode-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache and PHP Extensions in Windows</title>
		<link>http://bogomip.net/blog/2009/11/16/apache-and-php-extensions-in-windows/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=apache-and-php-extensions-in-windows</link>
		<comments>http://bogomip.net/blog/2009/11/16/apache-and-php-extensions-in-windows/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 18:28:22 +0000</pubDate>
		<dc:creator>Scurvy Jake</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://bogomip.net/blog/?p=3982</guid>
		<description><![CDATA[I've been fighting an error with my PHP installation in Windows with Apache related to loadable extensions. In my error log, I kept getting the errors: PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP\\ext\\php_mssql.dll PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP\\ext\\php_pdo_mssql.dll Interestingly enough, if I ran PHP through [...]]]></description>
			<content:encoded><![CDATA[<p>I've been fighting an error with my PHP installation in Windows with Apache related to loadable extensions. In my error log, I kept getting the errors:</p>
<pre>
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP\\ext\\php_mssql.dll
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP\\ext\\php_pdo_mssql.dll
</pre>
<p>Interestingly enough, if I ran PHP through the console, it loaded PDO and mssql just fine, the problem was <em>only</em> with the environment in Apache. Turns out the <strong>ntwdblib.dll</strong> wasn't being located by Apache. I could probably have added the PHP path to the environment variable PATH, but the easiest solution was to copy the dll to the Windows\System32 directory. A restart of Apache after that cured the problem.</p>
<img src="http://bogomip.net/blog/16cfc4b3/266bb3ea/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" />]]></content:encoded>
			<wfw:commentRss>http://bogomip.net/blog/2009/11/16/apache-and-php-extensions-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP, PDO, and MSSQL in Windows</title>
		<link>http://bogomip.net/blog/2009/11/04/php-pdo-and-mssql-in-windows/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-pdo-and-mssql-in-windows</link>
		<comments>http://bogomip.net/blog/2009/11/04/php-pdo-and-mssql-in-windows/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 01:33:21 +0000</pubDate>
		<dc:creator>Scurvy Jake</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://bogomip.net/blog/?p=3954</guid>
		<description><![CDATA[If, like me, you've been using PHP's PDO via the MSSQL driver, be aware that newer versions of PHP do not support MSSQL natively. Microsoft has it's own PHP driver now, or you can use the FreeTDS MSSQL extension, but I strongly recommend just switching to use the provided ODBC and PDO_ODBC extensions and save [...]]]></description>
			<content:encoded><![CDATA[<p>If, like me, you've been using <a href="http://www.php.net/">PHP</a>'s PDO via the MSSQL driver, be aware that newer versions of PHP <strong>do not</strong> support MSSQL natively. Microsoft has it's <em>own</em> <a href="http://www.microsoft.com/sqlserver/2005/en/us/PHP-Driver.aspx">PHP driver</a> now, or you can use the <a href="http://www.freetds.org/">FreeTDS</a> MSSQL extension, but I strongly recommend just switching to use the provided ODBC and PDO_ODBC extensions and save yourself the trouble. If you're already using PDOs, then you just have to create the object a little differently. For example:</p>
<pre>
$sql = new PDO("odbc:Driver={SQL Native Client};Server=ip.add.re.ss;Database=dbname;Uid=user;Pwd=password");
</pre>
<p>That worked for me. Not sure what you can do about the old <strong>mssql_guid_string</strong> function if you need that, though. I have the FreeTDS lib installed as well and that lets me call it, until I figure out how to do the same thing in ODBC.</p>
<p>Yes, ASP fans, that's a <em>ONE LINE</em> connection to a database. That's all anyone should need!</p>
<img src="http://bogomip.net/blog/16cfc4b3/266bb3ea/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" />]]></content:encoded>
			<wfw:commentRss>http://bogomip.net/blog/2009/11/04/php-pdo-and-mssql-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Server</title>
		<link>http://bogomip.net/blog/2008/04/30/new-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-server</link>
		<comments>http://bogomip.net/blog/2008/04/30/new-server/#comments</comments>
		<pubDate>Thu, 01 May 2008 00:45:18 +0000</pubDate>
		<dc:creator>Scurvy Jake</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://bogomip.net/blog/?p=2455</guid>
		<description><![CDATA[I'm currently building a new server for our colo facility to host streaming video. It's a nice machine, quad-core Xeon processor, 4Gb of RAM, 750Gb of RAID-1. When compiling PHP I kept running in to a problem with the gd library configuration. The shared object files are installed into /usr/lib64 (because it's a 64-bit operating [...]]]></description>
			<content:encoded><![CDATA[<p>I'm currently building a new server for our colo facility to host streaming video. It's a nice machine, quad-core Xeon processor, 4Gb of RAM, 750Gb of RAID-1. When compiling <a href="http://www.php.net/">PHP</a> I kept running in to a problem with the <strong>gd</strong> library configuration. The shared object files are installed into <code>/usr/lib64</code> (because it's a 64-bit operating system), but the header files are installed into <code>/usr/include</code> and are not being found.</p>
<p>If you tell the <code>configure</code> script to <code>--enable-gd=/usr</code> it balks about not finding the <code>libgd.(a|so)</code> file. If you rerun <code>configure</code> and use <code>--enable-gd=/usr/lib64</code> it finds <code>libgd.so</code>, but then doesn't pick up the header files.</p>
<p>Turns out the problem is pretty simple to solve: add <code>--with-libdir=lib64</code> to the <code>configure</code> script and it will fix everything. It's just not obvious when reading the configure help, especially when you come from a primarily 32-bit background.</p>
<img src="http://bogomip.net/blog/16cfc4b3/266bb3ea/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" />]]></content:encoded>
			<wfw:commentRss>http://bogomip.net/blog/2008/04/30/new-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Certification Test</title>
		<link>http://bogomip.net/blog/2007/10/10/certification-test/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=certification-test</link>
		<comments>http://bogomip.net/blog/2007/10/10/certification-test/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 01:59:33 +0000</pubDate>
		<dc:creator>Scurvy Jake</dc:creator>
				<category><![CDATA[Astoundingly Stupid Things]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://bogomip.net/blog/2007/10/10/certification-test/</guid>
		<description><![CDATA[Well, I didn't pass the test I mentioned before. It wasn't for lack of knowledge of how to program, or even much syntax. Several of the questions asked for free-form entry of INI file fields that did certain things. Other questions asked how the engine deals with things like switch statements when the default case [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I didn't pass the <a href="http://bogomip.net/blog/2007/10/08/crash-course/">test</a> I mentioned before. It wasn't for lack of knowledge of how to program, or even much syntax. Several of the questions asked for free-form entry of INI file fields that did certain things. Other questions asked how the engine deals with things like switch statements when the default case is not the last case in the code block and what happens to cases after that. Several questions also concerned the <em>nth</em> argument of some arbitrary function, or required intimate knowledge of lesser-known array functions.</p>
<p>What a bunch of crap. I can write great code anyway. I don't have to memorize API functions and INI settings I don't use, and when I need to use array functions I'll look up the argument order. I don't <em>need</em> to know how the engine processes things when you feed it bad code&#8212;I refactor bad code when I see it so I <strong>don't</strong> run it.</p>
<p>Bah.</p>
<img src="http://bogomip.net/blog/16cfc4b3/266bb3ea/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" />]]></content:encoded>
			<wfw:commentRss>http://bogomip.net/blog/2007/10/10/certification-test/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Crash Course</title>
		<link>http://bogomip.net/blog/2007/10/08/crash-course/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=crash-course</link>
		<comments>http://bogomip.net/blog/2007/10/08/crash-course/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 05:22:58 +0000</pubDate>
		<dc:creator>Scurvy Jake</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://bogomip.net/blog/2007/10/08/crash-course/</guid>
		<description><![CDATA[Today I went through the crash course on Zend Certification by Christian Wenz. I met him before at an ApacheCon in either 2000 or 2001, I don't remember. He's a great speaker, and although the course was riddled with information, I think he did a good job going over everything he could in the 6 [...]]]></description>
			<content:encoded><![CDATA[<p>Today I went through the crash course on Zend Certification by <a href="http://www.hauser-wenz.de/blog/">Christian Wenz</a>. I met him before at an ApacheCon in either 2000 or 2001, I don't remember. He's a great speaker, and although the course was riddled with information, I think he did a good job going over everything he could in the 6 or so hours he had.</p>
<p>Tomorrow at 10am I go to take my certification test. The trick questions worry me, but I don't think I'll have too much trouble passing&#8212;I have been using PHP since version 3. I have a lot of C and C++ experience to call on, I just have to pay attention and not miss any of the small, tricky details.</p>
<p>It's interesting how much PHP has evolved in the last few years. Today we talked about object oriented design patterns, something you just couldn't really implement even in PHP v4.</p>
<img src="http://bogomip.net/blog/16cfc4b3/266bb3ea/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" />]]></content:encoded>
			<wfw:commentRss>http://bogomip.net/blog/2007/10/08/crash-course/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

