Configuring the String Functions
There are no php.ini configuration directives that directly control the behavior of the string functions; however, a few configuration directives are very closely related, as shown in the following table.
Directive Name | Value Type | Description |
---|---|---|
magic_quotes_gpc | boolean (on/off) | If this directive is enabled, data received from GET/POST/Cookie sources or data parsed by parse_str() is processed automatically with the addslashes() function. |
magic_quotes_runtime | boolean (on/off) | If this directive is enabled, data received from many functions that retrieve data from external sources (such as the database and program execution functions) is processed automatically with the addslashes() function. |
magic_quotes_sybase |
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.