Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation problem


nightforce

Recommended Posts

Posted

I have tried to install osc but get the folowing message

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

My site is hosted on Freeola and the following info was found on their site

 

Following a security upgrade, a change has been made to our PHP configuration to switch register_globals OFF. This basically means that statements such as:

 

echo $my_variable_name;

 

will no longer function correctly. There is a simple resolution to this problem in the form of some code that should be inserted into the top of your page. Here are some examples:

 

If the variable you are trying to access is passed via the URL string:

 

$my_variable_name=$_GET['my_variable_name'];

 

If the variable you are trying to access is passed via a form post operation:

 

$my_variable_name=$_POST['my_variable_name'];

 

If the variable you are trying to access is a server environment variable:

 

$my_variable_name=$_SERVER['HTTP_HOST'];

 

I Have tried the patches and nothing seems to work.

 

Any help much appreciated as I dont have much hair left to pull out !!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...