E-WebStyle Web Design Houston E-WebStyle Web Design Houston

Archive for the ‘.php’ Category

IIS .php .htaccess

Monday, February 16th, 2009

If you are on this page then you probably realize that .htaccess files do not work with IIS.  You may have even experienced this problem with osCommerce.  And you might be trying to turn register_globals on for one particular site you are hosting or changing some other .php value for a specific site.  Well the solution is simple although programatically not eligant. 

Copy the php.ini file you are currently using into the root of the website for which you want to change one of the .php variables.  Change that php.ini file to the setting you want for that website.  In our case we set register_globals = on because we have it set to off for the rest of our .php sites.

There is the possiblity that this worked for us because we are using the hsphere control panel, but I do not beleive that is the case.  I would love to here comments and feedback.