RE: [PHP] magic quotes
| From: | Bastien Koert | Date: | Thu, 09 Aug 2007 13:23:07 +0000 |
| Subject: | RE: [PHP] magic quotes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-260508@lists.php.net to get a copy of this message | ||
you could use ini_set at the top of the script to turn the magic quotes off....if you add this in a
prepend file or a common included file that sits at the top of the script, it should take care of
the damn magic quotes...
failing that ask your host to turn it off
Bastien> From: k3cheese@insightbb.com> To: ceo@l-i-e.com> CC: php-general@lists.php.net>
Bastien> Date: Wed, 8 Aug 2007 23:58:50 -0500> Subject: RE: [PHP] magic quotes> > I added the code
Bastien> to my script and I still ended up escaped quotes.> if(ini_get('magic_quotes_gpc'))
Bastien> $_POST['data'] => stripslashes($_POST['data']); Didn't work at all. I
Bastien> think I read something> about it not working on runtime data. Like gpc if this is correct do
Bastien> you> have another solution? I put this line in the .htaccess file it didn't work> either:
Bastien> php_flag magic_quotes_gpc off... Is there anyway possible? I don't> need it now but
Bastien> it'd be nice to know for the future dev.> > Kevon K. Hayes> 815-980-3435> RFD,
Bastien> IL> > -----Original Message-----> From: Richard Lynch [mailto:ceo@l-i-e.com] > Sent:
Bastien> Wednesday, August 08, 2007 11:49 PM> To: k3cheese> Cc: php-general@lists.php.net> Subject:
Bastien> RE: [PHP] magic quotes> > .htaccess is only meaningful for Apache.> > JavaScript is
Bastien> equally useless to Ajax for working around Magic Quotes.> > On Wed, August 8, 2007 7:55 am,
Bastien> k3cheese wrote:> > Thanks,> >> > Met javascript not ajax. I had AJAX on the brain
Bastien> do to a project I'm> > working> > on. So I'm assuming there is a library of
Bastien> functions to use with the> > .htaccess file? Cause it looks like you can use UNIX and PHP to
Bastien> edit> > this> > file?> >> > Kevon K. Hayes> > 815-980-3435> >
Bastien> RFD, IL> >> > -----Original Message-----> > From: Richard Lynch
Bastien> [mailto:ceo@l-i-e.com]> > Sent: Tuesday, August 07, 2007 11:30 PM> > To: KVIGOR> >
Bastien> Cc: php-general@lists.php.net> > Subject: Re: [PHP] magic quotes> >> > On Tue,
Bastien> July 31, 2007 9:28 am, KVIGOR wrote:> >> If magic quotes is on and I dont have access to
Bastien> the php.ini.> >>> >> Is there any way I can strip quotes from the form field with
Bastien> out> >> using> >> AJAX?> >> > Best: Use .htaccess to turn magic_quotes
Bastien> off.> > Okay: Use something like if (ini_get('magic_quotes_gpc')) $data => >
Bastien> stripslashes($data);> > Worst: Ajax cannot possibly begin to address this issue and is>
Bastien> > completely useless to solve this particular problem.> >> > --> > Some people
Bastien> have a "gift" link here.> > Know what I want?> > I want you to buy a CD from
Bastien> some indie artist.> > http://cdbaby.com/browse/from/lynch>
Bastien> > Yeah, I get a buck. So?> >> > No virus found in this incoming message.> >
Bastien> Checked by AVG Free Edition.> > Version: 7.5.476 / Virus Database: 269.11.6/938 - Release
Bastien> Date:> > 8/5/2007> > 4:16 PM> >> >> > No virus found in this outgoing
Bastien> message.> > Checked by AVG Free Edition.> > Version: 7.5.476 / Virus Database:
Bastien> 269.11.6/938 - Release Date:> > 8/5/2007> > 4:16 PM> >> >> > > --
Bastien> > Some people have a "gift" link here.> Know what I want?> I want you to buy a CD
Bastien> from some indie artist.> http://cdbaby.com/browse/from/lynch>
Bastien> Yeah, I get a buck. So?> > No virus found in this incoming message.> Checked by AVG Free
Bastien> Edition. > Version: 7.5.476 / Virus Database: 269.11.8/941 - Release Date: 8/7/2007> 4:06
Bastien> PM> > > No virus found in this outgoing message.> Checked by AVG Free Edition. >
Bastien> Version: 7.5.476 / Virus Database: 269.11.8/941 - Release Date: 8/7/2007> 4:06 PM> > >
Bastien> -- > PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit:
Bastien> http://www.php.net/unsub.php>
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us