You are here: Re: How to tell if escape behavior is turned on « PHP Programming Language « IT news, forums, messages
Re: How to tell if escape behavior is turned on

Posted by Wojciech Bancer on 11/12/05 22:19

laredotornado@zipmail.com napisał(a):

> Hello,
> Is there a programmatic way in PHP (using PHP 4) to tell if the
> escaping apostraphes behavior is turned on when a request is submitted?
> What I would like to do is insert a value into my db table, but only
> apply escaping if PHP hasn't applied it for me ...

> $v = $_REQUEST['val'];

> if (escaping_disabled()) {
> $v = escape($v);
> }

> insertIntoDB($v);

Hmm... http://www.php.net/get-magic-quotes-gpc ? :)

--
Wojciech Bancer

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация