register Globals

Problems with the Windows version of XAMPP, questions, comments, and anything related.

register Globals

Postby anwoke8204 » 25. September 2006 04:55

Hi I am trying to install a script on my website, and it says it needs register globals enabled, and that I can do via php.ini or .htaccess file, how do I do it via the htaccess file, as that is the way I would prefer to do it.
anwoke8204
 
Posts: 47
Joined: 23. September 2006 02:16

Re: register Globals

Postby Izzy » 25. September 2006 06:56

anwoke8204 wrote:Hi I am trying to install a script on my website, and it says it needs register globals enabled, and that I can do via php.ini or .htaccess file, how do I do it via the htaccess file, as that is the way I would prefer to do it.

Code: Select all
php_value register_globals 1
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby anwoke8204 » 25. September 2006 07:56

sorry I new to this, do I add that to the .htaccess file(and if so how do I do that), or is that in the php.ini file.
anwoke8204
 
Posts: 47
Joined: 23. September 2006 02:16

Postby Izzy » 25. September 2006 08:04

anwoke8204 wrote:sorry I new to this, do I add that to the .htaccess file(and if so how do I do that), or is that in the php.ini file.

This for a .htaccess file.

Open your text editor and copy/paste the above snippet into the page.
Save the file as .htaccess into the root web directory of your site that is going to serve the script.
Example only:
xampp/htdocs/yoursite/.htaccess
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

j/k ;P

Postby nimd4 » 27. September 2006 23:59

anwoke8204 wrote:do it via the htaccess file
Izzy wrote:
Code: Select all
php_value register_globals 1
anwoke8204 wrote:or is that in the php.ini file

Yeah, hmm :roll: :P :wink:
User avatar
nimd4
 
Posts: 18
Joined: 20. September 2006 20:43

Re: j/k ;P

Postby Izzy » 28. September 2006 00:03

nimd4 wrote:
anwoke8204 wrote:do it via the htaccess file
Izzy wrote:
Code: Select all
php_value register_globals 1
anwoke8204 wrote:or is that in the php.ini file

Yeah, hmm :roll: :P :wink:
Sort of smart ass reply one would expect from an lame AOLer. ;)


It is different in the xampp\apache\bin\php.ini file:
; 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 (the default)
register_globals = On
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Hehe

Postby nimd4 » 07. November 2006 22:20

Izzy wrote:AOLer.

Excuse the spam (just seen it) --

Lolz, always forget that sarcasm doesn't work in print (heh) .. Good one btw! :)

ps. fo' sure would never, ever use AOl ...
User avatar
nimd4
 
Posts: 18
Joined: 20. September 2006 20:43


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 128 guests