-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
-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
-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 =
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
-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
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.
6 matches
Mail list logo