magic_quotes off in php 5.3

comproducts

Verified User
Joined
Aug 31, 2008
Messages
10
Location
Tiel NL
Hi,

Since PHP version 5.3 my magic_quotes in the php.ini gets commented out when i do a ./build update in the custombuild, causing the default value to become true.
Is there a way to set this to off permanently?
i'm NOT rewriting any confs or whatever.
Every other changes to my php.ini are saved nicely!?!?

Any help would be appreciated!
 
It has to be done at the .ini level. It can't be done within a script using ini_set(), because by the time the ini_set() is processed, PHP has already completed startup and the various superglobal arrays (POST/GET/REQUEST/etc...) have been set and will NOT be changed.:p

You can enable the setting per-script using an Apache <Files> directive, since enabling magic quotes for all PHP scripts is a horrible idea:
Code:
<Files needs_gpc.php>
   php_value magic_quotes_gpc 1
</Files>

check here :cool:
 
I know that... but i need it off!
Default value seems ON but after every update i need to goto the ini and set it to off (remove the ;)
Weird but i dont know how to set it to off??
Maybe i'll set it to off via php_value in all installs.

Thanks for the reply!
 
Back
Top