<?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 on: PHP: Stripping out predicted text from a string</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/</link>
	<description></description>
	<pubDate>Thu, 28 Aug 2008 14:48:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: rawbear</title>
		<link>http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10807</link>
		<dc:creator>rawbear</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10807</guid>
		<description>sorry for the fourth word. The s is just beside the d. My spell checker didn't pick up, of course!
</description>
		<content:encoded><![CDATA[<p>sorry for the fourth word. The s is just beside the d. My spell checker didn&#8217;t pick up, of course!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RawBear</title>
		<link>http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10806</link>
		<dc:creator>RawBear</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10806</guid>
		<description>Since I can ass a signature to my emails (from my Palm or Hotmail or Phone) I would prefer to use a code (&#92;end for example) in the signature and have MT drop the rest of the text before posting. That would make the snippet provider-independent.</description>
		<content:encoded><![CDATA[<p>Since I can ass a signature to my emails (from my Palm or Hotmail or Phone) I would prefer to use a code (&#92;end for example) in the signature and have MT drop the rest of the text before posting. That would make the snippet provider-independent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eokyere</title>
		<link>http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10805</link>
		<dc:creator>eokyere</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10805</guid>
		<description>hi, great work you guys have here... i read your blog every now and then, and now that i'm trying to get down and dirty with mt i shd be coming regularly.

i'm having problems with php includes... they don't seem to execute. phpinfo shows php is setup fine on the server. is there something i'm missing? 

i've tried the forums, but didn't come out with anything helpful. thanks a lot.

eokyere</description>
		<content:encoded><![CDATA[<p>hi, great work you guys have here&#8230; i read your blog every now and then, and now that i&#8217;m trying to get down and dirty with mt i shd be coming regularly.</p>
<p>i&#8217;m having problems with php includes&#8230; they don&#8217;t seem to execute. phpinfo shows php is setup fine on the server. is there something i&#8217;m missing? </p>
<p>i&#8217;ve tried the forums, but didn&#8217;t come out with anything helpful. thanks a lot.</p>
<p>eokyere</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10804</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10804</guid>
		<description>That is MUCH better! I knew there was a simpler solution! :D</description>
		<content:encoded><![CDATA[<p>That is MUCH better! I knew there was a simpler solution! <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10803</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10803</guid>
		<description>Hi,

how about using preg_replace for that job?
That would read:

$string = preg_replace('!'.$search.'!', $replace, $string);

or probably (for avoiding problems with magic characters in PCRE syntax) the good old str_replace:

$string = str_replace($search, $replace, $string);</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>how about using preg_replace for that job?<br />
That would read:</p>
<p>$string = preg_replace(&#8217;!&#8217;.$search.&#8217;!', $replace, $string);</p>
<p>or probably (for avoiding problems with magic characters in PCRE syntax) the good old str_replace:</p>
<p>$string = str_replace($search, $replace, $string);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10802</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/12/30/php-stripping-out-predicted-text-from-a-string/#comment-10802</guid>
		<description>Put that code in place of (and in the SAME place as) your MTEntryBody tag... Keep in mind - it's only "HIDING" the text - so any page that you have MTEntryBody - you need to add this code. (Also - You're kind of out of luck on the XML as that won't process php...)</description>
		<content:encoded><![CDATA[<p>Put that code in place of (and in the SAME place as) your MTEntryBody tag&#8230; Keep in mind - it&#8217;s only &#8220;HIDING&#8221; the text - so any page that you have MTEntryBody - you need to add this code. (Also - You&#8217;re kind of out of luck on the XML as that won&#8217;t process php&#8230;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.283 seconds -->
