View Full Version : register_globals
number9
07-26-2007, 02:25 PM
Can any body tell me how i turn on register_globals?
Dan
bobdog
07-26-2007, 05:04 PM
find the php.ini file in the directory your are running php.
and edit this line:
register_globals = On
areidmtm
07-26-2007, 05:51 PM
don't use register_globals! This is a HUGE security risk! HUGE
felgall
07-26-2007, 08:17 PM
The change required to fix a script for register_globals is so trivial that if the author hasn't fixed that one then there are almost certainly a huge number of other harder to fix security holes in their script just waiting to allow someone to trash your site.
adddfico
07-28-2007, 06:17 AM
The only problems is that 9/10's of the programs in Fantastico require it to be on :(
felgall
07-28-2007, 02:37 PM
That doesn't sound right. The default register globals setting was changed all the way back when PHP4.2 was first released and all decent scripts should have been updated to work with the new more secure default many years ago.
See http://www.felgall.com/htmlt67.htm for a page I wrote on how to patch the top of a badly written script that assumes that register globals is enabled so that it will work with register globals disabled.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.