[Question] About $REQUEST['config']

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the phpBB 3.1.x discussion forum.
Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique

[Question] About $REQUEST['config']

Postby Dakin Quelia » 24 Sep 2009, 15:57

Hello,

I have a question:

The function request_var('config') is prefered instead of $_REQUEST['config']? If yes, in php file includes/acp/acp_board.php, there is a $_REQUEST['config'].

See you soon,

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: [Question] About $REQUEST['config']

Postby igorw » 24 Sep 2009, 17:56

Yes it is prefered. It also applies for $_POST and $_GET. request_var should be used if possible.

The reason that it's still used in some cases is because it needs to. One case for this is when using isset(). The other is for some advanced array requesting, as in acp_board.

Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique

Re: [Question] About $REQUEST['config']

Postby Dakin Quelia » 24 Sep 2009, 17:59

Thank you very much. I understand. ;)


Return to “phpBB 3.0.x "Olympus" discussion”

Who is online

Users browsing this forum: Bing [Bot], CommonCrawl [Bot] and 1 guest