Predefined Variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Kriek
Forum Contributor
Posts: 238
Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:

Predefined Variables

Post by Kriek »

So, twiglet in 4.0.6 I would need to use $HTTP_GET_VARS instead of $_GET ??
Man I hate working for clients/hosts that don't upgrade.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Kriek wrote:So, twiglet in 4.0.6 I would need to use $HTTP_GET_VARS instead of $_GET ??
Yup, and if you use any of the $HTTP_xxx_VARS arrays in a function you need to remember to declare them as global:

Code: Select all

function myveryownfunction() {
     global $HTTP_GET_VARS;
     print_r($HTTP_GET_VARS);
}
Kriek wrote:Man I hate working for clients/hosts that don't upgrade.
It's nice when you can just upgrade the server yourself, although my webmaster overlord is a bit jittery about the upgrade to 4.3.0 which is frustrating but I'll win him round eventually.

Mac
User avatar
Kriek
Forum Contributor
Posts: 238
Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:

Post by Kriek »

Thanks for confirming that chief! Much appreciated.
twigletmac wrote:It's nice when you can just upgrade the server yourself ...
That's true, my server is running 4.2.3, but this client's host is a pain in the butt; running 4.0.6 and they won't upgrade.
twigletmac wrote:... my webmaster overlord is a bit jittery about the upgrade to 4.3.0 which is frustrating but I'll win him round eventually.
Personally I'd like to upgrade mine to 4.3.0 just so I can use PEAR 1.0 =)
Post Reply