Guest Posted January 11, 2005 Posted January 11, 2005 Hi, i have a little problem getting into my site. A error comes up saying FATAL ERROR: register_globals is disabled in php.ini, please enable it! I dont know why,but i wana know how to fix it. Help will be great, Mbolli
hel8itch Posted January 11, 2005 Posted January 11, 2005 youll have to edit the php.ini file change in the /etc/php.ini or /etc/httpd/php.ini Register Global = ON
Guest Posted January 11, 2005 Posted January 11, 2005 youll have to edit the php.ini file change in the /etc/php.ini or /etc/httpd/php.ini Register Global = ON <{POST_SNAPBACK}> I hear you,but i cant seem to find php.ini Whats the best way yo get there??
WiseWombat Posted January 11, 2005 Posted January 11, 2005 Hi, i have a little problem getting into my site.A error comes up saying I dont know why,but i wana know how to fix it. Help will be great, Mbolli <{POST_SNAPBACK}> Try editing the php file in C:\WINDOWS directory and set register_globes to ON ( WARNING ) I think I know what Im talking about. BACK UP BACK UP BACK UP BACK UP
Guest Posted January 11, 2005 Posted January 11, 2005 Try editing the php file in C:\WINDOWS directory and set register_globes to ON <{POST_SNAPBACK}> The webserver is not on a local machine man. I went threw the ftp and went to /etc/ but didnt not find no php.ini.
hel8itch Posted January 11, 2005 Posted January 11, 2005 thats if your hosting it yourself?are you hosting it yourself or is it on a public host?
hel8itch Posted January 11, 2005 Posted January 11, 2005 if you cant find it on your ftp you may need to contact the host.have you ever had access to the php.ini file
Guest Posted January 11, 2005 Posted January 11, 2005 thats if your hosting it yourself?are you hosting it yourself or is it on a public host? <{POST_SNAPBACK}> Public
hel8itch Posted January 11, 2005 Posted January 11, 2005 who is your host? if you do manage to find it The section you need in php.ini looks like this Whether or not to register the EGPCS variables as global variables. You may ; want to turn this off if you don't want to clutter your scripts' global scope ; with user data. This makes most sense when coupled with track_vars - in which ; case you can access all of the GPC variables through the $HTTP_*_VARS[], ; variables. ; ; You should do your best to write your scripts so that they do not require ; register_globals to be on; Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. register_globals = Off ; This directive tells PHP whether to declare the argv&argc variables (that ; would contain the GET information). If you don't use these variables, you ; should turn it off for increased performance. register_argc_argv = On Change register_globals = Off to register_globals = On and save it
hel8itch Posted January 11, 2005 Posted January 11, 2005 ok try this this works only if you dont host your site yourself and it is on a public host ( folder /shop/incudes/)<normally> open apllication_top.php delete // check if register_globals is enabled. // since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. if (function_exists('ini_get')) { ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); } and insert if (!empty($HTTP_GET_VARS)) { extract($HTTP_GET_VARS); } if (!empty($HTTP_POST_VARS)) { extract($HTTP_POST_VARS); } if (!empty($HTTP_SERVER_VARS)) { extract($HTTP_SERVER_VARS); } and save
Guest Posted January 11, 2005 Posted January 11, 2005 ok try this this works only if you dont host your site yourself and it is on a public host... ...or if you want a rather more secure fix, you could install the "register globals" contribution. :-) Rich.
SunnyWales Posted January 15, 2005 Posted January 15, 2005 ...or if you want a rather more secure fix, you could install the "register globals" contribution. :-) Rich. <{POST_SNAPBACK}> I've downloaded this but can't open it. Any suggestions? Wendy Wendy Go on spread some sunshine!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.