After installing phpcms, The deprecated: function set_magic_quotes_runtime () is deprecated error occurs. After checking the network and data, the set_magic_quotes_runtime () function is removed after php5.3 and php6.0.
Set_magic_quotes_runtime (0) Function
In PHP. in the ini configuration file, a Boolean value is set to magic_quotes_runtime. When it is enabled, most PHP functions are automatically introduced from the outside (including databases or files) overflow characters in the data plus backslash.
Of course, if you repeatedly Add a backslash to the overflow character, there will be multiple backlash in the string, so you need to use set_magic_quotes_runtime () and
Get_magic_quotes_runtime () sets and detects the magic_quotes_runtime status in the PHP. ini file.
To make your ownProgramIt can be executed normally regardless of the server settings. You can use get_magic_quotes_runtime to check and set the status autumn to determine whether to handle it manually, or use set_magic_quotes_runtime (0) at the beginning (or when automatic escape is not required.
Magic_quotes_gpc: determines whether to automatically add a backslash to '"/in the data sent by GPC (get, post, cookie. Available
Get_magic_quotes_gpc () detection system settings. If this setting is not enabled, you can use the addslashes () function to add it. Its function is to query the database
For query statements, a backslash must be added before certain characters. These characters are single quotation marks ('), double quotation marks ("), backslash (/), and NUL (null ).
Solution:
// @ Set_magic_quotes_runtime (0 );
Ini_set ("magic_quotes_runtime", 0 );
The ini_set () method is used to replace the original set_magic_quotes_runtime syntax.