|
General Details
|
|
PHP (Hypertext Preprocess...
|
|
Posted 201 Days Ago
|
|
105 Views
|
|
Received 0 Ratings
|
|
Ensure String Escape
Description
This PHP function escapes a string if magic_quotes_gpc() is turned off in your PHP configuration.
magic_quotes_gpc() automatically escapes strings if it is enabled in the config, but it is extra security to check if it is off. If it is, mysql_real_escape_string() is used to escape the string.
magic_quotes_gpc() will be removed by PHP 6.0.0, so it is probably better to just escape your strings manually.
Source Code
Comments
| Please login to post comments. |
|
|
Better yet, disable magic quotes, and use prepared queries.
|
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
|