• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

register_globals

A

adrianodalpra

Guest
Hi,

I would like to allow register_globals="On" only for some selected sites on PHP 4.4.4.

I only know how to disable/enable this flag to all sites on php.ini. There is a way to allow this only for some sites?

I want to disallow register_globals on server but need it on to some clientes.

Thanks for any information.
 
Create a file .htaccess in the root directory of the site you want to enable register_globals and put this:

php_flag register_globals on

I think this should fix it
 
copy the php.ini to the httpdocs directory of the domain you want to allow global register.
then edit the php.ini which you have copied and change the row of the global register to be ON.
now global register will work on the specific domain you wanted.
 
Back
Top