<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1036611" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1036611</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problems-wordpress-templates#comment-1210721</link>
    <description> &lt;p&gt;To avoid namespace clashes, &lt;a href=&quot;http://www.php.net/manual/en/userlandnaming.tips.php&quot; class=&quot;bb-url&quot;&gt;prefix&lt;/a&gt; your global variables with an uncommon string.  You might rename your [incode]$sql[/incode] to [incode]$triexa_sql[/incode], for example.  [incode]$sql1[/incode] isn&#039;t meaningful and might cause problems later.  &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;&lt;/p&gt;
&lt;p&gt;To ensure variables are in the global namespace, refer to them by [incode]$GLOBALS[&#039;var&#039;][/incode], even when assigning.  If you still can&#039;t see the variable from elsewhere, it&#039;s possible you&#039;re looking for it before it has been created.  Check the order of execution, you might be able to fix it by promoting a call to require or something.&lt;/p&gt;
&lt;p&gt;&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;&lt;/p&gt;
 </description>
     <pubDate>Sun, 19 Nov 2006 01:08:25 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1210721 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problems-wordpress-templates#comment-1210719</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;DDoSAttack;210714 wrote:&lt;/strong&gt; For the $sql problem I would just use something different like $sql1 or something. It is easier to alter your code then it is to alter their code.&lt;/p&gt;
&lt;p&gt;If it is not in $GLOBALS then it is not in the scope. Is your variable that you are trying to find inside of a function or a class?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Nope - its just in an init.php page called from header.&lt;/p&gt;
&lt;p&gt;Works for my entire site, but not when it is called from within the header.php template in wordpress. My best guess is that it is wrapped in a function/class/something, but surely there is some way to &quot;get around&quot; this?&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Nov 2006 22:39:35 +0000</pubDate>
 <dc:creator>Triexa.com</dc:creator>
 <guid isPermaLink="false">comment 1210719 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problems-wordpress-templates#comment-1210714</link>
    <description> &lt;p&gt;For the $sql problem I would just use something different like $sql1 or something. It is easier to alter your code then it is to alter their code.&lt;/p&gt;
&lt;p&gt;If it is not in $GLOBALS then it is not in the scope. Is your variable that you are trying to find inside of a function or a class?&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Nov 2006 20:49:38 +0000</pubDate>
 <dc:creator>DDoSAttack</dc:creator>
 <guid isPermaLink="false">comment 1210714 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
