Re: how to fight backslash in char variable???

From: Date: Tue, 20 Aug 2002 12:31:33 +0000
Subject: Re: how to fight backslash in char variable???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113314@lists.php.net to get a copy of this message
On Tue, 20 Aug 2002 15:13:53 +0300, you wrote: >the problem is that from out.php I need to echo this $intext but I get: > >blablabla \' blablabla > >the question is.. how to fight this backslash out of there? The magic_quotes_gpc setting is enabled on your server. If you have access to the server config, I would suggest disabling it (I find it to be a huge pain). If you don't, but can place PHP directives in .htaccess files, you can disable it on a per-directory basis. If that option is unavailable, you'll be forced to use the stripslashes() function on data that comes from get, post, or cookie. HTH

« previous php.general (#113314) next »