Web Hosting Talk







View Full Version : PHP 4.2.0 register_globals on a directory basis


Starhost
05-12-2002, 01:30 PM
On my server I want to set register_globals, on 1 directory off. So that I can test if my scripts are 4.2.0 compactible.

I thought I could do this by adding the following to the virtualhost section:
php_admin_flag register_globals off

Though this doesn't seem to work when I look at the phpinfo of that virtualhost register_globals is still on. Does anyone know how to solve this problem?

Thanks in advance,

webx
05-12-2002, 05:42 PM
Did you restart apache?

I just tested it and it works great :)

Starhost
05-12-2002, 05:54 PM
I did..........

Starhost
05-12-2002, 06:03 PM
Sometimes I'm just SO stupid :D

I added it to the virtualhost section that redirects to the https virtualhostsection :D

webx
05-12-2002, 06:21 PM
I spent quite a few hours yesterday on one spelling mistake :bawling: I was about to dump the whole software and find another one :crap:

but finally somehow i looked closely and found my own bug :o

That's the way it is! ;)