<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1034305" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1034305</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/if-string-contains#comment-1199375</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: Basically I think the problem is your methodology. You&#039;re trying to have the CMS write php code, and that just doesn&#039;t work, what you should do, if anything is alter the CMS so that it does an addslashes to whatever is replacing {PAGETITLE} (if you want to do it at all, which again, I don&#039;t reccommend. The even better plan is to find out what where PAGETITLE is coming from and use that variable for the $bg, you might have to make it global, but at least it will work.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Did exactly that Cpt. It finally works. Thank you soooo much. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; I was working on that stupid problem for two weeks.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 May 2006 03:25:44 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1199375 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/if-string-contains#comment-1199224</link>
    <description> &lt;p&gt;Basically I think the problem is your methodology. You&#039;re trying to have the CMS write php code, and that just doesn&#039;t work, what you should do, if anything is alter the CMS so that it does an addslashes to whatever is replacing {PAGETITLE} (if you want to do it at all, which again, I don&#039;t reccommend. The even better plan is to find out what where PAGETITLE is coming from and use that variable for the $bg, you might have to make it global, but at least it will work.&lt;/p&gt;
 </description>
     <pubDate>Mon, 08 May 2006 22:40:38 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1199224 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/if-string-contains#comment-1199220</link>
    <description> &lt;p&gt;It is really hard to explain Cpt. But inside the CMS I am using, when ever you type {PAGETITLE} anywhere in the code, the title of the page is displayed. So if I set the $string to equal {PAGETITLE} $string = &quot;{PAGETITLE}&quot; what happens if the page title has a &quot; in it? The code screws up. Is there a way to define a string without &quot; or &#039; ?&lt;/p&gt;
 </description>
     <pubDate>Mon, 08 May 2006 21:30:06 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1199220 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/if-string-contains#comment-1199203</link>
    <description> &lt;p&gt;Why won&#039;t it work for your problem?&lt;/p&gt;
 </description>
     <pubDate>Mon, 08 May 2006 16:35:38 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1199203 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/if-string-contains#comment-1199167</link>
    <description> &lt;p&gt;I found it, but I just found out it won&#039;t work for my problem &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/at-wits-end.png&quot; title=&quot;Mad&quot; alt=&quot;Mad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp; $string &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Hello World!&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;stristr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$string&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;He&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) === &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FALSE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&quot;earth&quot; not found in string&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; else&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;It does contain He&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 08 May 2006 03:22:01 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1199167 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
