<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1037972" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1037972</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/register-globals#comment-1217159</link>
    <description> &lt;p&gt;Well i have php 4 installed? My host keeps replying saying that i need to put a php.ini file inside the directory.  It is running php as a cgi which is why a .htaccess wont work and throws up a error 500.&lt;/p&gt;
&lt;p&gt;So if i create a phpinfo() file and then put a php.ini file inside that directory it should say that register globals is off??&lt;/p&gt;
&lt;p&gt;Correct it worked. phpinfo says register globals is off. So i have to put this php.ini in every directory with php files. This includes directories within directories?&lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update: yes it worked.  I put it in only a few directories perhaps taking into account that some files are includes and so on. Maybe itr will be ok. Anyway installation is ok with it so what the hell!?&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Mar 2007 14:54:10 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1217159 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/register-globals#comment-1217155</link>
    <description> &lt;p&gt;If there was an easier way, I would have said it.&lt;/p&gt;
&lt;p&gt;Test the feature to make sure your host even supports it first.  You need PHP 5.2.  Place a php.ini file in the same directory as a script with phpinfo() to see if it changes the settings.&lt;/p&gt;
&lt;p&gt;Once that&#039;s done, you only need to copy it to the directories with php scripts.&lt;/p&gt;
&lt;p&gt;I had to do it for multiple OSCommerce installations, and I only needed it in a few directories.&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Mar 2007 14:29:04 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1217155 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/register-globals#comment-1217153</link>
    <description> &lt;p&gt;Yes, i thought that i might have to add it to all directories.  Im trying to install joomla, and it requires register globals to be off.&lt;/p&gt;
&lt;p&gt;So when i created the php.ini file, i put it in the root (well subdomain root) it still gave me a message that register globals was off?  So this obviously means a that i need to put one of these files in every directory of the joomla installation!!?&lt;/p&gt;
&lt;p&gt;What an arse!&lt;/p&gt;
&lt;p&gt;There must be an easier way?&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Mar 2007 14:17:52 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1217153 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/register-globals#comment-1217142</link>
    <description> &lt;p&gt;.htaccess files are for setting parameters for Apache.  Php.ini files are for setting options for PHP.&lt;/p&gt;
&lt;p&gt;Some servers do let you set php parameters in the .htaccess files if php is compiled as an Apache module.  I think your is not in this case.&lt;/p&gt;
&lt;p&gt;You will have to put this php.ini file in every directory you want it to take effect.&lt;/p&gt;
&lt;p&gt;Can you post the error from your error log?  Also, what version of PHP are you using?&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Mar 2007 13:13:10 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1217142 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/register-globals#comment-1217141</link>
    <description> &lt;p&gt;Yes i tried that and that rule throws up an error 500? I think thats why they advised me to add a php.ini file instead with this line:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;PHPSuExec Servers: register_globals Off&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;However is there anything else i need to put in this file in order for it to work?  Do you think it would go in the root or the subdomain directory?&lt;/p&gt;
&lt;p&gt;Im actually confused as to why there is a php.ini and a .htaccess if they can both do the same thing?&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Mar 2007 13:06:17 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1217141 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/register-globals#comment-1217140</link>
    <description> &lt;p&gt;The htaccess file will not work as their PHP is probably compiled as a CGI Module.  Create a php.ini file for &lt;strong&gt;every directory&lt;/strong&gt; you need register globals changed, and add this line:&lt;/p&gt;
&lt;p&gt;register_globals = Off&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Mar 2007 13:04:39 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1217140 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/register-globals#comment-1217133</link>
    <description> &lt;p&gt;You should create an .htaccess file not a php.ini.  Put this file in your root directory.  If you already have an .htaccess file just add this to it&lt;/p&gt;
&lt;p&gt;php_flag register_globals off&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Allow from all&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Mar 2007 12:20:07 +0000</pubDate>
 <dc:creator>ChadR</dc:creator>
 <guid isPermaLink="false">comment 1217133 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
