RE: [PHP] php3_magic_quotes_gpc

From: Date: Fri, 11 Aug 2000 18:57:54 +0000
Subject: RE: [PHP] php3_magic_quotes_gpc
Groups: php.general 
Request: Send a blank email to php-general+get-11379@lists.php.net to get a copy of this message
Magic quotes properly escapes all input that comes from outside PHP so that it can be easily added to a database. This means that it changes strings such as "\\this is a test\" to "\\\\this is a test\\". In other words, it automatically runs addslashes() on all externally-obtained variables before you ever see them. As for the .htaccess file, just do something like this: <Files /path/to/your/directory/*> php3_magic_quotes_gpc On </Files> (note that the path is the server filesystem path, not the URL) Stick the .htaccess somewhere that Apache can see it, and you're off! --Bruce Bruce Christensen Intel Corporation brucex.r.christensen@intel.com -----Original Message----- From: Brad Sacks [mailto:brad@velotravels.com] Sent: Thursday, August 10, 2000 11:03 PM To: php-general@lists.php.net Subject: [PHP] php3_magic_quotes_gpc Does anyone now how to use php3_magic_quotes_gpc on a directory basis using htaccess. I am on a shared server and don't have administrative access. To be honest, I don't even now what magis quotes are. Could use a lesson. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#11379) next »