steincrivel Posted August 16, 2010 Share Posted August 16, 2010 hi I have a problem in my hosting on my page I get an error "Server Requirement Error: register_globals is disabled in your PHP configuration. This Can Be enabled in your php.ini configuration file or in the. Htaccess file in your catalog directory." and an error happens in the installer Oscommerce "FATAL ERROR: register_globals is disabled in php.ini, please enable it!" my page www.steincrivel.heliohost.org Link to comment Share on other sites More sharing options...
Wizard Posted August 16, 2010 Share Posted August 16, 2010 OS Commerce can be installed via Fantastico. http://stevie.heliohost.org:2082/frontend/...app=OS_Commerce Also, please read the Support FAQ before posting for support again. Link to comment Share on other sites More sharing options...
steincrivel Posted August 16, 2010 Author Share Posted August 16, 2010 yes this version and very outdated I'm from Brazil! and has no language in Portuguese Link to comment Share on other sites More sharing options...
Wizard Posted August 16, 2010 Share Posted August 16, 2010 Try adding this to .htaccess: php_value register_globals 1 Link to comment Share on other sites More sharing options...
Wizard Posted August 16, 2010 Share Posted August 16, 2010 This support request is being escalated to our root admin. Does Stevie allow them to enable register_globals via .htaccess? Link to comment Share on other sites More sharing options...
Byron Posted August 16, 2010 Share Posted August 16, 2010 We have register_globals off for security reasons and we can't use php_value. Our PHP is setup under suPHP - it isn't compiled under a DSO. In other words, the php_value directive does not exist under our Apache. Link to comment Share on other sites More sharing options...
steincrivel Posted August 17, 2010 Author Share Posted August 17, 2010 I can not use this feature? Link to comment Share on other sites More sharing options...
Ashoat Posted August 17, 2010 Share Posted August 17, 2010 Append the following to your PHP script: /** * function to emulate the register_globals setting in PHP * for all of those diehard fans of possibly harmful PHP settings :-) * @author Ruquay K Calloway * @param string $order order in which to register the globals, e.g. 'egpcs' for default */ function register_globals($order = 'egpcs') { // define a subroutine if(!function_exists('register_global_array')) { function register_global_array(array $superglobal) { foreach($superglobal as $varname => $value) { global $$varname; $$varname = $value; } } } $order = explode("\r\n", trim(chunk_split($order, 1))); foreach($order as $k) { switch(strtolower($k)) { case 'e': register_global_array($_ENV); break; case 'g': register_global_array($_GET); break; case 'p': register_global_array($_POST); break; case 'c': register_global_array($_COOKIE); break; case 's': register_global_array($_SERVER); break; } } } register_globals(); Link to comment Share on other sites More sharing options...
Recommended Posts