Re: [PHP] problem with register globals on new server




<afan@xxxxxxxx> wrote in message
news:4846.69.66.68.21.1164980625.squirrel@xxxxxxxxxxxxxxx
afan@xxxxxxxx wrote:
hi,
I had to move my osComerce store to new hosting company. new server runs
on php5/mysql5.

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

since evenon old server globals was Off I was adding
<ifModule mod_php4.c>
php_value register_globals 1
</ifModule>

Now, I tried with

<ifModule mod_php5.c>
php_value register_globals On
</ifModule>

but it doesn't work.

Maybe your host doesn't allow it to be changed through a htaccess..

Is htaccess support enabled?

Put garbage in the file (random chars) and if you get a 500 internal
server error, htaccess files work.. if you don't, that's the problem.
yup! that was the problem.
though, after I talked to administrator, he is not happy to reconfigure
Apache to allow .htaccess because of security issue. Is this REALLY so big
issue?

If you site administrator thinks that using an htaccess file is a security
issue then he is very much mistaken. The directives in an htaccess file DO
NOT enable you to access any one else's data on a shared server. All they do
is apply additional settings to your own site while leaving UNTOUCHED the
settings being used by other sites.

Most professional web hosting companies do not have an issue with htaccess
files, so if yours does I would suggest switching to one with a more
professional attuitude.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
.



Relevant Pages

  • Re: Question: Frontage 2002 and the .htaccess file
    ... I believe .htaccess is somehow related to how, and whether, the fp extensions ... then that would break or corrupt the server extensions - ... Can you post back the exact contents of your .htaccess file - this might help ...
    (microsoft.public.frontpage.client)
  • .htaccess question protect my php test environment
    ... I created a .htaccess file with vi and put this in it. ... then in the redhat http server utitily under server settings ... Do you Yahoo!? ...
    (php.general)
  • Re: Hiding PHP extension
    ... If someone can't use .htaccess because the hosting prohibit it, ... suggest to change the hosting company because he miss a lot of features that ... an .htaccess file can do. ...
    (comp.lang.php)
  • htaccess must be empty
    ... I am moving some php scripts to a new host. ... If I add a .htaccess file, or more specifically: ... results in internal server error messages. ... If I upload an empty .htaccess file, ...
    (comp.lang.php)
  • Re: Why to use PHP
    ... Put this in the .htaccess file in the upload directory: ... Wouldn't permissions on .htaccess prevent overwrite if the server is ...
    (comp.lang.php)