<?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>Casey Watson &#187; PHP</title>
	<atom:link href="http://casedogdesigns.com/wordpress/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://casedogdesigns.com/wordpress</link>
	<description>Outdated Thoughts</description>
	<lastBuildDate>Tue, 01 Dec 2009 22:08:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>cURLing Google for Fun and Profit</title>
		<link>http://casedogdesigns.com/wordpress/curling-google-for-fun-and-profit/</link>
		<comments>http://casedogdesigns.com/wordpress/curling-google-for-fun-and-profit/#comments</comments>
		<pubDate>Wed, 29 Nov 2006 19:52:31 +0000</pubDate>
		<dc:creator>Casey</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[cURL]]></category>

		<guid isPermaLink="false">http://cd2/wordpress/?p=7</guid>
		<description><![CDATA[Here is an example of brute force engine searching. It does nothing more than perform a large number of searches in a very short time. Beware this is not a very nice thing to do and it is a terrible waste of network, and CPU resources. This is given as an example of the  [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an example of brute force engine searching. It does nothing more than perform a large number of searches in a very short time. Beware this is not a very nice thing to do and it is a terrible waste of network, and CPU resources. This is given as an example of the   power of cURL. This script is written in PHP and uses the libcurl libraries.<br />
[code lang="php"]<br />
<?php<br />
$base_url = "http://www.google.com/search";<br />
$ch = curl_init();</p>
<p>for($i=0; $i<20; $i++) {<br />
  $url = $base_url . "?q=$i";<br />
  curl_setopt($ch, CURLOPT_URL, $url);<br />
  curl_exec($ch);<br />
}</p>
<p>curl_close($ch);<br />
?><br />
[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://casedogdesigns.com/wordpress/curling-google-for-fun-and-profit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Octal Notation in Regex</title>
		<link>http://casedogdesigns.com/wordpress/octal-notation-in-regex/</link>
		<comments>http://casedogdesigns.com/wordpress/octal-notation-in-regex/#comments</comments>
		<pubDate>Wed, 29 Nov 2006 19:51:42 +0000</pubDate>
		<dc:creator>Casey</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://cd2/wordpress/?p=6</guid>
		<description><![CDATA[I recently needed to replace the non-standard extended characters that ms-word uses for quotes in over 80 pages. The octal notation available in regular expressions proved to be very helpful. To use octal in a regular expression just escape the three number code like \200.
[code lang="php"]
]]></description>
			<content:encoded><![CDATA[<p>I recently needed to replace the non-standard extended characters that ms-word uses for quotes in over 80 pages. The octal notation available in regular expressions proved to be very helpful. To use octal in a regular expression just escape the three number code like \200.<br />
[code lang="php"]<br />
<?php<br />
#!/usr/bin/php -q<br />
for($id = 1; $id<82; $id++) {<br />
$text=mysql_result($result,0,"content");<br />
$new_text = ereg_replace("Ã¢\200\234","\"",$text);<br />
$text = $new_text;<br />
$new_text = ereg_replace("Ã¢\200\235","\"",$text);<br />
$text = $new_text;<br />
$new_text = ereg_replace("Ã¢\200\223","-",$text);<br />
$text = $new_text;<br />
$new_text = ereg_replace("Ã¢\200\231","'",$text);<br />
$text = $new_text;<br />
$new_text = ereg_replace("Ã¢\200\230","'",$text);<br />
$text = $new_text;<br />
$new_text = ereg_replace("Ã¢\200","",$text);<br />
$text = $new_text;<br />
$new_text = ereg_replace("Ã¢","\"",$text);<br />
$text = $new_text;<br />
$new_text = ereg_replace("\r\n","\n",$text);<br />
$escaped_text = mysql_escape_string($text);<br />
}<br />
?><br />
[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://casedogdesigns.com/wordpress/octal-notation-in-regex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
