1
Dave_L
PHP Superglobals
  • 2003/12/17 16:58

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Are there plans to change $HTTP_GET_VARS to $_GET, $HTTP_POST_VARS to $_POST, etc.?

The superglobals, supported in PHP 4.1.0 and higher, are more convenient to use, since they don't have to be declared as global within functions, and the stated requirements for XOOPS is PHP 4.1.0 and higher.

2
Mithrandir
Re: PHP Superglobals

$_GET and $_POST should be used in new modules instead of $HTTP_GET_VARS and $HTTP_POST_VARS in my opinion. Until $HTTP_... is not working anymore, however, I feel that the core should be using the "old" way to ensure compatibility.

Login

Who's Online

231 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits