<?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>Topher's Scribbles &#187; Apache &#8211; PHP &#8211; MySQL</title>
	<atom:link href="http://topherdotcom.com/scribble/category/apache-php-mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://topherdotcom.com/scribble</link>
	<description>My journey through Apache, PHP, FreeBSD, and then some.</description>
	<lastBuildDate>Thu, 18 Mar 2010 23:05:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Finding Duplicate Records in MySQL</title>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/finding-duplicate-records-in-mysql/41</link>
		<comments>http://topherdotcom.com/scribble/apache-php-mysql/finding-duplicate-records-in-mysql/41#comments</comments>
		<pubDate>Thu, 18 Mar 2010 23:04:36 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[having]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/?p=41</guid>
		<description><![CDATA[So I was needed to find some duplicate records in a table that had more than 3,000 records. I stumbled upon this query which made my life easier.
SELECT `field`, COUNT(`field`)
FROM `table`
GROUP BY `field`
HAVING ( COUNT(`field`) &#62; 1 )
<script type="text/javascript">SHARETHIS.addEntry({ title: "Finding Duplicate Records in MySQL", url: "http://topherdotcom.com/scribble/apache-php-mysql/finding-duplicate-records-in-mysql/41" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/apache-php-mysql/finding-duplicate-records-in-mysql/41/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Search and Replace</title>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/mysql-search-and-replace/37</link>
		<comments>http://topherdotcom.com/scribble/apache-php-mysql/mysql-search-and-replace/37#comments</comments>
		<pubDate>Sat, 24 Jan 2009 00:03:03 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[search and replace]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/?p=37</guid>
		<description><![CDATA[This is definitely useful&#8230;
UPDATE `&#60;table_name&#62;` SET `&#60;field_name&#62;` = replace( &#60;field_name&#62;, &#8216;&#60;string_search&#62;&#8217;, &#8216;&#60;string_replace&#62;&#8217; ) ;
Cheers!!

<script type="text/javascript">SHARETHIS.addEntry({ title: "MySQL Search and Replace", url: "http://topherdotcom.com/scribble/apache-php-mysql/mysql-search-and-replace/37" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/apache-php-mysql/mysql-search-and-replace/37/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ternary; which means this stuff ? :</title>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/ternary-which-means-this-stuff/35</link>
		<comments>http://topherdotcom.com/scribble/apache-php-mysql/ternary-which-means-this-stuff/35#comments</comments>
		<pubDate>Thu, 08 Jan 2009 19:41:14 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>
		<category><![CDATA[:]]></category>
		<category><![CDATA[?]]></category>
		<category><![CDATA[ternary]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/?p=35</guid>
		<description><![CDATA[OK, I needed to write this down as I do not use this comparison on a daily basis, but use it enough where its getting annoying that I have to research it every time I use it.
So without further ado&#8230;..
(expression) ? &#8216;do this if true&#8216; : &#8216;do this if false&#8216;
Voila
<script type="text/javascript">SHARETHIS.addEntry({ title: "Ternary; which means this stuff ? :", url: "http://topherdotcom.com/scribble/apache-php-mysql/ternary-which-means-this-stuff/35" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/apache-php-mysql/ternary-which-means-this-stuff/35/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOP in PHP not the same as Java</title>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/oop-in-php-not-the-same-as-java/33</link>
		<comments>http://topherdotcom.com/scribble/apache-php-mysql/oop-in-php-not-the-same-as-java/33#comments</comments>
		<pubDate>Thu, 09 Oct 2008 07:45:03 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/apache-php-mysql/oop-in-php-not-the-same-as-java/33</guid>
		<description><![CDATA[We all know that PHP5 has a lot more OOP features than PHP4, and we all know that it is not a real OOP language. There are a lot of things in PHP5 that won&#8217;t work like Java (obviously). With that said, I just want to point out one feature that I noticed while playing [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "OOP in PHP not the same as Java", url: "http://topherdotcom.com/scribble/apache-php-mysql/oop-in-php-not-the-same-as-java/33" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/apache-php-mysql/oop-in-php-not-the-same-as-java/33/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deny Users in a Directory and Allow Users in Subdirectory</title>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/deny-users-in-a-directory-and-allow-users-in-subdirectory/31</link>
		<comments>http://topherdotcom.com/scribble/apache-php-mysql/deny-users-in-a-directory-and-allow-users-in-subdirectory/31#comments</comments>
		<pubDate>Mon, 24 Mar 2008 01:36:24 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>
		<category><![CDATA[Order allow]]></category>
		<category><![CDATA[order deny]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/apache-php-mysql/deny-users-in-a-directory-and-allow-users-in-subdirectory/31</guid>
		<description><![CDATA[It took me a while to figure this out. I wanted to deny the public access to a directory, like /deny and allow the public in a subdirectory like /deny/allow.
This was done by the specific order of Allow, Deny. If you mix these up, you will either allow all or deny all. Anyway, here&#8217;s what [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Deny Users in a Directory and Allow Users in Subdirectory", url: "http://topherdotcom.com/scribble/apache-php-mysql/deny-users-in-a-directory-and-allow-users-in-subdirectory/31" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/apache-php-mysql/deny-users-in-a-directory-and-allow-users-in-subdirectory/31/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free DNS Tools??</title>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/free-dns-tools/21</link>
		<comments>http://topherdotcom.com/scribble/apache-php-mysql/free-dns-tools/21#comments</comments>
		<pubDate>Fri, 27 Jul 2007 07:00:45 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/apache-php-mysql/free-dns-tools/21</guid>
		<description><![CDATA[This is more a rant than anything to do with what I normally post, but I just had to post this!!
In case you don&#8217;t know, I am a System Administrator for a web design company and I used to work in Tech Support for a hosting company. Since the beginning, I used dnsstuff.com for all [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Free DNS Tools??", url: "http://topherdotcom.com/scribble/apache-php-mysql/free-dns-tools/21" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/apache-php-mysql/free-dns-tools/21/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error installing GD from php5-extensions using FreeBSD Ports</title>
		<link>http://topherdotcom.com/scribble/freebsd/error-installing-gd-from-php5-extensions-using-freebsd-ports/19</link>
		<comments>http://topherdotcom.com/scribble/freebsd/error-installing-gd-from-php5-extensions-using-freebsd-ports/19#comments</comments>
		<pubDate>Thu, 05 Jul 2007 21:34:38 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/freebsd/error-installing-gd-from-php5-extensions-using-freebsd-ports/19</guid>
		<description><![CDATA[I&#8217;ve run into another problem installing Apache-PHP-MySQL FreeBSD server. While installing php5-extensions, I received an error when it tried to install GD. Here&#8217;s the error:
 ===>  Patching for php5-gd-5.2.3
===>  Applying FreeBSD patches for php5-gd-5.2.3
===>   php5-gd-5.2.3 depends on executable in : phpize - found
===>   php5-gd-5.2.3 depends on file: /usr/local/bin/autoconf259 - [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Error installing GD from php5-extensions using FreeBSD Ports", url: "http://topherdotcom.com/scribble/freebsd/error-installing-gd-from-php5-extensions-using-freebsd-ports/19" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/freebsd/error-installing-gd-from-php5-extensions-using-freebsd-ports/19/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search Engine Friendly URL&#8217;s Using Mod_Rewrite</title>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/search-engine-friendly-urls-using-mod_rewrite/14</link>
		<comments>http://topherdotcom.com/scribble/apache-php-mysql/search-engine-friendly-urls-using-mod_rewrite/14#comments</comments>
		<pubDate>Thu, 05 Jul 2007 20:49:34 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/freebsd/search-engine-friendly-urls-using-mod_rewrite/14</guid>
		<description><![CDATA[Want to make http://domain.com/awesomepage.php?page=4&#038;user_id=badass&#038;action=go look like http://domain.com/awesome/page/4/user/baddass/go ?? To do this, you will need to use mod_rewrite in .htaccess or edit your Virtual Host in httpd.conf.
Here is the code:

Options +FollowSymlinks
RewriteEngine On
RewriteRule ^/awesome/page/([0-9]+)/user/(.+)/(.+)$ /awesomepage.php?page=$1&#038;user_id=$2&#038;action=$3 [NC]

Yes, you will need to create more than one entry per page, but if you plan it out correctly, you will need [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Search Engine Friendly URL&#8217;s Using Mod_Rewrite", url: "http://topherdotcom.com/scribble/apache-php-mysql/search-engine-friendly-urls-using-mod_rewrite/14" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/apache-php-mysql/search-engine-friendly-urls-using-mod_rewrite/14/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s My IP Address</title>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/whats-my-ip-address/17</link>
		<comments>http://topherdotcom.com/scribble/apache-php-mysql/whats-my-ip-address/17#comments</comments>
		<pubDate>Thu, 05 Jul 2007 20:37:29 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/apache-php-mysql/whats-my-ip-address/17</guid>
		<description><![CDATA[Since I have a dynamic IP address at home, I always have to look it up whenever I access anything that is IP restricted at work.
All I do is run a simple code:
echo $_SERVER[REMOTE_ADDR]
Or you can check out my other page, http://topherdotcom.com/scribble/what-is-my-ip-address/ to see your own IP address.
Done!!
<script type="text/javascript">SHARETHIS.addEntry({ title: "What&#8217;s My IP Address", url: "http://topherdotcom.com/scribble/apache-php-mysql/whats-my-ip-address/17" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/apache-php-mysql/whats-my-ip-address/17/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t Install mysql50-server Through the Ports?</title>
		<link>http://topherdotcom.com/scribble/freebsd/cant-install-mysql50-server-through-the-ports/18</link>
		<comments>http://topherdotcom.com/scribble/freebsd/cant-install-mysql50-server-through-the-ports/18#comments</comments>
		<pubDate>Thu, 05 Jul 2007 20:28:06 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Apache - PHP - MySQL]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://topherdotcom.com/scribble/freebsd/cant-install-mysql50-server-through-the-ports/18</guid>
		<description><![CDATA[I&#8217;ve been trying to install mysql50-server via ports, but have been getting a checksum error, like this:
 => MD5 Checksum mismatch for mysql-5.0.41.tar.gz.
=> SHA256 Checksum mismatch for mysql-5.0.41.tar.gz.
===>  Giving up on fetching files: mysql-5.0.41.tar.gz mysql-5.0.41.tar.gz
Make sure the Makefile and distinfo file (/usr/ports/databases/mysql50-server/distinfo)
are up to date.  If you are absolutely sure you want to [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Can&#8217;t Install mysql50-server Through the Ports?", url: "http://topherdotcom.com/scribble/freebsd/cant-install-mysql50-server-through-the-ports/18" });</script>]]></description>
		<wfw:commentRss>http://topherdotcom.com/scribble/freebsd/cant-install-mysql50-server-through-the-ports/18/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
