You are here: Re: always enable addslashes « PHP Programming Language « IT news, forums, messages
Re: always enable addslashes

Posted by Curtis on 12/12/06 10:11

If you have access to php.ini, you can set the magic_quotes_gpc
variable to "On". Alternatively, you can set it using the ini_set
function in your scripts (See: http://php.net/ini_set).

However, it would be better if you just escaped input on your own, and
having PHP automatically add slashes is a nuisance if you already do.

Curtis

On Dec 12, 1:48 am, "Tarscher" <tarsc...@gmail.com> wrote:
> Hi all,
>
> Is there a way I can always enable addslashes by including a line of
> code to the top of my pages?
>
> Thanks in advance
> Stijn

 

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

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