Re: Version Difference

From: Date: Tue, 16 Jan 2001 10:43:02 +0000
Subject: Re: Version Difference
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34791@lists.php.net to get a copy of this message
> Hi all, > > With the following in one page: > <input type=text name=document_title>"; > > and this in the page called: > echo "$document_title"; > > I am receiving two different results from two different environments > under some circumstances, which is causing me a massive headache. oh my! > My development environment is PHP 4.0.3pl1 running on Windows 95. > My live environment is 4.0.1pl2 running on a Cobalt Raq. > > All is well in both the above until the user enters an apostrophe, upon > which the development environment nicely adds a backslash prior to it, > allowing it to be saved in Mysql with no additional effort. The live > environment, however, does not. this will make perfect sense. live has setting magic_quotes_gpc on, the dev has magic_quotes_gpc off. this is most likely cause at least. see : http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc > I am trying to build quite an advanced system using PHP and I'm finding > a number of issues with quotes and double-quotes which makes building > dependable code extremely difficult and time consuming. Has anyone else > had trouble getting their applications to be 100% water tight regarding > user entry? others have run into similar "issues" as well but after learning why it usually is okay. > Any help would be greatly appreciated - I've now spent more than one > week just messing around with apostrophes in one form or another - this > is only the latest of my worries - and I'm sure there are more quote > related issues to come :O) oh my, should have asked earlier! ;-) regards, philip > > Gareth Davies > Progressive Business Services Ltd > > +44 (0) 1274 889592 Office > +44 (0) 1274 889656 Fax > +44 (0) 7970 733851 Mobile (24 Hour) >

« previous php.general (#34791) next »