Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

register globals with a php.ini file in folder

Hello,

I realize that it is a stupid thing to do but I have to enable register globals in a directory and ALL sub-directories.

I know this can be done with .htaccess but I also heard that I could put a file called "php.ini" in the folder.

How can I do this?  What should I place in the php.ini file of the directory?
Avatar of rschoenbach
rschoenbach

You would probably need a full php.ini file. Depending on the webhost you are using some might not allow this functionality and some will only allow you to use .htaccess but anyways...

The command to turn this on in the php file is:

register_globals = on
ASKER CERTIFIED SOLUTION
Avatar of milanmk
milanmk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial