<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1037776" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1037776</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/variable-scope-updating-global-vars#comment-1216319</link>
    <description> &lt;p&gt;Ok, I will write it to another file.&lt;br /&gt;
I&#039;ve browsed the &lt;a href=&quot;http://fr2.php.net/manual/en/ref.filesystem.php&quot; class=&quot;bb-url&quot;&gt;Filesystem Functions&lt;/a&gt; but cannot find how to clear the content of the file or replace the value of a variable.&lt;/p&gt;
&lt;p&gt;I&#039;m thinking of writing &lt;em&gt;$update_sender_key_var = $_GET[&quot;update_sender_key&quot;];&lt;/em&gt; which will result in writing &lt;em&gt;$update_sender_key_var = &quot;qg5DDG&quot;;&lt;/em&gt; then include that file.&lt;br /&gt;
I think it&#039;s how web applications deal with their configuration file.&lt;/p&gt;
 </description>
     <pubDate>Sun, 11 Mar 2007 21:25:40 +0000</pubDate>
 <dc:creator>eSite</dc:creator>
 <guid isPermaLink="false">comment 1216319 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/variable-scope-updating-global-vars#comment-1216318</link>
    <description> &lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&#039;m not a PHP expert, but I think the reason the second IF statement is returning &#039;abc&#039; is because you set it line on line 1 and in the second example the first IF statement is false.  Since there is no &lt;em&gt;update_sender_key&lt;/em&gt; in the URL, it&#039;s inheriting the value from the first line. &lt;/p&gt;
&lt;p&gt;This may just be giving you are problem in testing because using that &#039;abc&#039; value.  I&#039;m guessing that &#039;abc&#039; will be replaced with a real variable, in which case your code would probably work the way you are expecting it to. The problem is that you are resetting the $update_sender_key to equal &#039;abc&#039; when the page loads, so any previously set value, would be replaced with the first line.  &lt;/p&gt;
&lt;p&gt;It&#039;s hard to tell without the rest of the code, but that&#039;s my guess. I hope that helps (and makes sense). &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 11 Mar 2007 19:36:08 +0000</pubDate>
 <dc:creator>jGirlyGirl</dc:creator>
 <guid isPermaLink="false">comment 1216318 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
