register_globals OFF
-
I have had some problems with parts of WordPress and certain modules on my host, rss feeds not working, stats not working, spam blockers like akimnet and Spam Karma, wp-shoutcast etc and I believe this is the cause……….
UPDATE 7/6/04
Following a security upgrade, a change has been made to our PHP configuration to switch register_globals OFF. This basically means that statements such as:
echo $my_variable_name;
will no longer function correctly. There is a simple resolution to this problem in the form of some code that should be inserted into the top of your page. Here are some examples:
If the variable you are trying to access is passed via the URL string:
$my_variable_name=$_GET[a€?my_variable_namea€?];
If the variable you are trying to access is passed via a form post operation:
$my_variable_name=$_POST[a€?my_variable_namea€?];
If the variable you are trying to access is a server environment variable:
$my_variable_name=$_SERVER[a€?HTTP_HOSTa€?];
- The topic ‘register_globals OFF’ is closed to new replies.