Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
Knoxius
Benjamin Knox
Send A Message
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
PHP (Hypertext Preprocess...
Posted 201 Days Ago
105 Views
Received 0 Ratings
More Codes By This Author
Ensure String Escape
.htaccess Rewrites
clear_value();
Easy-to-Use Image Rollove...
PHP/MySql User System (Ba...

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.
 
Relish     Posted 189 Days Ago
 
 
Better yet, disable magic quotes, and use prepared queries.
Page 1 of 1
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
If you made money from keeping your profile up to date, say $30 and up, per month. What extra time would you spend on your profile?

No extra time
A few hours at weekends
A whole day each week
Every minute i can get free


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
1.28 Year Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2010, Scott Thompson, All Rights Reserved