How to fix Register Globals
If you want to enable Register Globals for particular domain, then follow these steps,
1) Create phpinfo.php like
<?php phpinfo(); ?>
2) Browse it with http://<domain name>/phpinfo.php
3) If register global is OFF, you will need to enable it through = regedit
4) Start >> Run >> regedit
Go to My Computer\HKLM\SOFTWARE\PHP\Per Directory Values\D\Inetpub\vhosts\
Go to particular Domain and change it to 1.
Second procedure..
If you are using plesk control panel with PHP 5.2.3 version then follow these steps..
1) Open the path D:\SWsoft\Plesk\Additional\PleskPHP5\php.ini on server.
2) Search the register_globals in php.ini files
3) If the status is off then make it on in php.ini files.
4) Restart the IIS on server.. that’s it..
Code for PHP info :-<? phpinfo(); ?>
|