why not
extract($_POST);
and use your old code or somthing like that,
same thing really if code don't work
John Taylor-Johnston wrote:
How do I rebuild this peice of code to be register_globals=off friendly?
Just when I thought I was getting good. This keeps up, I'm changing back
the php.ini myself.
John
If your code absolutley needs register_globals and you don't have the
time to rewrite it,
On Thu, 03 Nov 2005 21:17:39 -0500, John Taylor-Johnston wrote:
> Ok, you are all used to working with register_gloabsl=off.
>
> mail($to, stripslashes($subject), wordwrap($message, 60), "From:
> $from\r\n");
>
> I change this line to:
>
> mail($to, stripslashes($_POST["subject"]), wordwrap($_P
On Fri, July 8, 2005 6:50 am, Jason Barnett said:
> [EMAIL PROTECTED] wrote:
> But what you *can* do, is to ini_get('register_globals') and have your
> script act accordingly. You could for example extract() your $_GET and
> $_POST variables.
>
> http://php.net/manual/en/function.extract.php
If *
[EMAIL PROTECTED] wrote:
Hi,
If i use, at the beginning of my scripts, ini_set('register_globals', 0),
register globals will be turned off?
Thanks
ini_set() just doesn't make sense for that directive. register_globals
takes the input data from HTTP requests and sets them in the symbol
tab
Merlin wrote:
Hello,
I am wondering if an application written to work with register globals
set to off ($_GET[variable] etc.) would work with a system, where
register globals is set to on?
yes.
Kae
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
On Sun, 2 Feb 2003, Pat Johnston wrote:
> I've read that an include file in each of your pages with the lines below
> should do the trick for you with register_globals OFF..
>
> Not sure if this is a valid way to go though...
>
> extract($_SERVER);
> extract($_ENV);
> extract($_
I've read that an include file in each of your pages with the lines below
should do the trick for you with register_globals OFF..
Not sure if this is a valid way to go though...
Regards, Pat
"Davy Obdam" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hell
8 matches
Mail list logo