RE: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-02 Thread Ford, Mike [LSS]
-Original Message- From: Paul Nicholson [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 02:11 Hey gang, I've been wondering about developing scripts that the end-user might run on php 4.1.0. I've heard allot of ways except for one that I recently thought of. How about

Re: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-02 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yeah, at the top of each functionwhere you would normally put global $HTTP_GET_VARS; The created $_GET is not a superglobal so its scope is only in the function its defined in or if you define it in the global namespace you'd have to global

[PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-01 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey gang, I've been wondering about developing scripts that the end-user might run on php 4.1.0. I've heard allot of ways except for one that I recently thought of. How about using: - if(!isset($_GET)) { global $HTTP_GET_VARS; $_GET =

Re: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-01 Thread Sascha Cunz
Hey gang, I've been wondering about developing scripts that the end-user might run on php 4.1.0. I've heard allot of ways except for one that I recently thought of. How about using: - if(!isset($_GET)) { global $HTTP_GET_VARS; $_GET = $HTTP_GET_VARS; } - ? That allows you to

Re: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-01 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, [snip] If any script shall be executeable on such an old PHP release, this method sounds really good. But, for security reasons i would prefer to ship this in an extra script, which the user has explicitly to include (Maybe just

Re: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-01 Thread Sascha Cunz
ummyou'd have to include that line at the top of every function that uses get(or any of the other) vars(scoping reasons) or somehow pass it via a reference to the function. I've always added the line at the top. At the top of each _function_? Urgs. Sounds like a hell of a lot of work.