note 59822 added to function.set-magic-quotes-runtime

From: Date: Fri, 16 Dec 2005 16:54:29 +0000
Subject: note 59822 added to function.set-magic-quotes-runtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-100313@lists.php.net to get a copy of this message
I think the post below is useless here.. magic_quotes_runtime is not magic_quotes_gpc.. when magic_quotes_runtime is enabled (on, =1, true), then every function call working with some kind of database will return strings with slashes (like addslashes everytime you call such a function). magic_quotes_gpc instead is what is meant in the post below - and in fact, magic_quotes_runtime does not do anything to it. but if there existed some function like set_magic_quotes_gpc it would not do anything too, the reason is mentioned below.. so if you're searchin' for a way to turn off quotes_gpc than set the directive in the INI-File or with the help of the php_value-flag of mod_php, when php is compiled as an apache module, inside of an .htaccess-file (PERDIR-configuration). otherwise you really have to check wether quotes_gpc is enabled or not and than add addslashes or stripslashes as you need on the input-variables. and as mentioned in the post below that one belows this one ( -.- ) magic_quotes_runtime is mostrly useless too.. ---- Manual Page -- http://www.php.net/manual/en/function.set-magic-quotes-runtime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59822 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59822&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59822&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59822&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59822&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59822&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59822&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59822&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59822&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100313) next »