• 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

D

diegonoe06

Guest
Hello all,

I have register_globals disable on the server for well known security reasons.

Anywhere, I have to enable it for some customers who need it.

I enable it by adding the registry key:

MyComputer >> HKEY_LOCAL_MACHINE >> SOFTWARE >> Wow6432Node >> PHP >> PER DIRECTORY VALUES >> C >> INETPUB >> VHOSTS >> DOMAIN.TLD

Then, analizing phpinfo reports, I see register_globals "on" (Local Value) and register_globals "off" (master value). It is ok, as I desire.

But, php scripts still does not take variable values. It is very strange, because phpinfo reports that register_globals is on.

### Here is my script test.php

<?php
echo $parameter;
?>



### Here is my script prueba.php

http://domain.com/test.php?parameter=1


### The output should be "1", but none value returned.


Any ideas?
Thanks.
 
Hi,

Open up %systemroot%/php.ini, search for register_globals, set it to 1 ; thats all
 
I have the same problem, although the accused php_info():

Directive / Local Value / Master Value
register_globals / On / Off

and input to registry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PHP\Per Directory Values\C\Inetpub\vhosts\mydomain.com]
"register_globals"="1"
(not on, does not turn on with the local value)

register_globals does not work within the site.

System Plesk 9.0 and Win 2008 Server x64 Sp2

Help, Thanks.
 
Back
Top