What's the truth about runtime enable/disable of magic_quote
Posted: Wed Sep 12, 2007 12:11 pm
I am running PHP Version 5.2.2 on a Windows PC using XAMPP. I created the following code:
I get the following result:
magic_quotes_gpc=1
magic_quotes_gpc=1
I have read conflicting information about whether it is possible to change get_magic_quotes_gpc at runtime.
Can someone please clear this up?
Thank you,
Sam Mela
Code: Select all
<?php
ini_set('magic_quotes_gpc', 'On');
echo("magic_quotes_gpc=".get_magic_quotes_gpc()."<br />");
ini_set('magic_quotes_gpc', 'Off');
echo("magic_quotes_gpc=".get_magic_quotes_gpc()."<br />");
?>magic_quotes_gpc=1
magic_quotes_gpc=1
I have read conflicting information about whether it is possible to change get_magic_quotes_gpc at runtime.
Can someone please clear this up?
Thank you,
Sam Mela