Re: How to set register_globals=off in the script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if the script isn't that big you can probably use extract() in most cases..
is the script in its own directory? if so you can turn register globals on
just for that one directory..
create an .htaccess file and add:

php_value register_globals on

then place the .htaccess in the directory where the script is located.

----- Original Message ----- 
From: "Jerry Swanson" <pmysql@xxxxxxxxx>
To: "PHP List" <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, December 21, 2004 2:56 PM
Subject:  How to set register_globals=off in the script?


> I know that "register_globals = on" is not secure. But one program
> requires to use register_globals=on. So in php.ini register_globals is
> set to on.
>
> I have PHP 5.1, is it possible in the code set register_globals=off
> for specific scripts.
>
> So I want to keep PHP register_globals=on in php.ini, but in local
> files set to off?
>
> How I can do this?
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux