Reply to Re: backslash problem

Your name:

Reply:


Posted by Todd on 10/12/06 15:58

I think I read recently that magic quotes will go away in PHP ver 6.

If you are building a system for the future you might want to turn off magic
quotes and use addslashes and stripslashes to secure your POST and GET
variables.

You might want to read up on php security. It is generally a good idea to
check your GETs and POSTs to make sure they are clean of "injection" issues.

Here is a pretty good article:

http://www.onlamp.com/pub/a/php/2003/03/20/php_security.html

Regards

"= poster =" <nomail@nomail.spam> wrote in message
news:452e1579$0$5521$ba620e4c@news.skynet.be...
> Hi group !
>
> I'm new to PHP but I like it a lot !
>
> I created a textbox form to publish news on my site ...
> It's a simple textbox with an submit button.
> When the button is pressed the data in the textbox is stored in mysql .
>
> When I wan't to retrieve the stored text and display it through PHP some
> words aren't displayed right.
> An example : Isn't is displayed as Isn\'t
>
> The solved the \n problem with the nl2br function.
>
> Is there a function for my backslash problem ?
>
> thanks,
>
>
>

[Back to original 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

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