<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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>
	<lastBuildDate>Tue, 10 Jan 2012 01:21:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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-page-1/#comment-10807</link>
		<dc:creator>rawbear</dc:creator>
		<pubDate>Wed, 30 Nov -0001 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&#039;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&#039;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-page-1/#comment-10806</link>
		<dc:creator>RawBear</dc:creator>
		<pubDate>Wed, 30 Nov -0001 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 (&#092;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-page-1/#comment-10805</link>
		<dc:creator>eokyere</dc:creator>
		<pubDate>Wed, 30 Nov -0001 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&#039;m trying to get down and dirty with mt i shd be coming regularly.

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

i&#039;ve tried the forums, but didn&#039;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&#039;m trying to get down and dirty with mt i shd be coming regularly.</p>
<p>i&#039;m having problems with php includes&#8230; they don&#039;t seem to execute. phpinfo shows php is setup fine on the server. is there something i&#039;m missing? </p>
<p>i&#039;ve tried the forums, but didn&#039;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-page-1/#comment-10804</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 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-page-1/#comment-10803</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Wed, 30 Nov -0001 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(&#039;!&#039;.$search.&#039;!&#039;, $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(&#039;!&#039;.$search.&#039;!', $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-page-1/#comment-10802</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 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&#039;s only &quot;HIDING&quot; the text - so any page that you have MTEntryBody - you need to add this code. (Also - You&#039;re kind of out of luck on the XML as that won&#039;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 &#8211; it&#039;s only &#034;HIDING&#034; the text &#8211; so any page that you have MTEntryBody &#8211; you need to add this code. (Also &#8211; You&#039;re kind of out of luck on the XML as that won&#039;t process php&#8230;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

