<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1036595" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1036595</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-register-globals#comment-1210620</link>
    <description> &lt;p&gt;I had a similar situation some years ago, found a script on php.net and modified it. Try the following script and see if it helps:&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;$global_vars_array &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= array(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;_GET\&quot;, \&quot;_POST\&quot;);&lt;br /&gt;foreach(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$global_vars_array&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$global_var&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$keys&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = array_keys($&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$global_var&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$keys&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = trim(&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$global_var&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Edit, btw, you&#039;ll need to add that into every .php page which uses the global variables.&lt;/p&gt;
 </description>
     <pubDate>Thu, 16 Nov 2006 19:28:34 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1210620 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-register-globals#comment-1210617</link>
    <description> &lt;p&gt;Thanks so much for that info.  I looked up Joomla&#039;s documentation, and sure enough, it&#039;s there.  I&#039;ve tried forcing register_globals with .htaccess file with no luck.  I think I will just have to modify OSC with the emulation.  IMHO, it was not smart of the OSC team to require register globals because of it&#039;s lack of security.  Plus, I heard that it won&#039;t be an option in php 6.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
 </description>
     <pubDate>Thu, 16 Nov 2006 16:07:04 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1210617 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-register-globals#comment-1210612</link>
    <description> &lt;p&gt;I think it was in the joomla documentationt hat I saw something about how they have something to emulate Registered Globals for backwards compatability as they recommend that you have PHP&#039;s register_globals shut off.&lt;/p&gt;
&lt;p&gt;My server has them turned on my default, and per Joomla&#039;s documentation to turn them off for my site I entered the following lines into the .htaccess file for where I have joomla installed. (Only the first one is for register globals)&lt;/p&gt;
&lt;p&gt;[=&quot;Courier New&quot;]php_flag register_globals off&lt;br /&gt;
php_flag magic_quotes_gpc on[/]&lt;/p&gt;
&lt;p&gt;So maybe you can turn them on the same way, but for security, maybe want to look into emulation instead.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
&lt;p&gt;PS. Ok, this has me wondering how they do the emulation, so I searched, and it looks like it is the registerGlobals function in the globals.php file that handles this if you turn the emulation on. May want to check into how they do it and see if you can figure a workaround.&lt;/p&gt;
 </description>
     <pubDate>Thu, 16 Nov 2006 15:35:16 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1210612 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
