Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

regester_globals


deansyme

Recommended Posts

Posted

i have installed a new version f os commerse on my new host, but its coming up - 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. - ....now i have been told there is a contib patch that can override this, but I have heard they arent safe and leavce me wide open to hackers....is this true?....or do they work ok?

Many thanks

Deano

the more I learn - The more i'll be able to teach!

deano

Scotland's Gift Shop

Posted
i have installed a new version f os commerse on my new host, but its coming up - 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. - ....now i have been told there is a contib patch that can override this, but I have heard they arent safe and leavce me wide open to hackers....is this true?....or do they work ok?

Many thanks

Deano

 

 

Create a file called .htaccess (if it doesn't already exist) in your public_html folder and insert the following:

 

php_flag register_globals On

 

 

 

I hope this helps.

Posted

You should also just be able to create a file in your main directory called php.ini and place these two lines in the file.

 

session.use_trans_sid = 0
register_globals = 1

 

That should take care of it..

Posted

Thankyou very much....are these safe enough to do?....i would hate to find a hacker has knackered ma site

Deano

the more I learn - The more i'll be able to teach!

deano

Scotland's Gift Shop

Posted

do i create the filrs using notepad?...cos i tried this and no success

Deano

the more I learn - The more i'll be able to teach!

deano

Scotland's Gift Shop

Posted
do i create the filrs using notepad?...cos i tried this and no success

Deano

 

Create the file in your hosting control panel somewhere in your file manager. I know my way is safe.. Ive never used the method the member mentioned above mine. As well I do not promise it will even work for you.. Its just what worked for me.. Different server environments require different measures.. Good luck.. I guess if you wanted to create this in a text editor you could. You just have to make sure to give the filename the extension .ini so it would be called php.ini and then upload it to the main/root directory of your site.

Posted
Thankyou very much....are these safe enough to do?....i would hate to find a hacker has knackered ma site

Deano

 

 

My method works fine also. As far as securing against hackers, I suggest you change the name of your admin folder, password protect it & make amendments in both catalog/includes/configure.php and catalog/admin/includes/configure.php to point to the newly named admin file.

 

I hope this helps.

Posted

register globals off is always more safe so apply patch create bt vger.

 

But for some contributions where the developer didnt really worry about reg globals You might have to tweqaak the code.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Archived

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

×
×
  • Create New...