Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Register Globals


Xexell

Recommended Posts

Posted

Hi, im using the oscommerce-2.2rc2a. I could install fine at dreamhost, but know im trying to install one template by template monster and I can't. Everytime I add htacess to the catalog folder the htacess disappears. I try to do some methods I read here like putting register_globals = On

safe_mode = Off on php.ini. But still doesn't work.

 

Somebody can save me? :)

Posted

First of all, I would be very leery of using any code that requires register global variables to be "on". That's very backlevel code that will soon break. As soon as your host upgrades to PHP 5.3, you will be bombarded with warnings that you are using deprecated functions and settings. As of an upgrade to PHP 6.0 (still a year or two away from general release), it won't work at all. osC 2.2 RC1 and later have no need for register global variables, and it would be unwise to use any templates or add-ons that require you to go backwards and use them. Your host might not even permit you to turn register global variables on.

 

You will have to discuss with your host how to add PHP settings -- most systems require that they be put in php.ini, although some very backlevel installations will let you put them in .htaccess. Some systems require that you put them in php.ini, and put a line in .htaccess telling PHP where php.ini is located (e.g., suPHP_ConfigPath).

 

You say that you create an .htaccess file (not htaccess, not .htacess), and it completely disappears? Or it's there, and doesn't seem to have any effect? Don't forget that names with a period in front (.) are "hidden" files and don't show up in some command-line or FTP operations. You should have some way of seeing hidden files. If the entire file really is disappearing, ask your host why. You should be permitted to set up an .htaccess file on an account -- if you can't, switch hosts. It's in the store's root directory or the site root (if they're not the same)?

Archived

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

×
×
  • Create New...