﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Релиб / Веб-программирование / PHP  / PHP - как блокировать вывод HTML тэгов в гостевуху / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Релиб</description><link>http://www.relib.com/forums/</link><webMaster>robot@relib.com</webMaster><lastBuildDate>Sat, 22 Nov 2008 19:32:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>Спасибо, попробую изменить кодировку по умолчанию, может еще  че интересное.</description><pubDate>Mon, 29 Oct 2001 08:43:00 GMT</pubDate><dc:creator>Оптать</dc:creator></item><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>Оптать, &lt;BR&gt;в php.ini измени default_charset&lt;BR&gt;sorry, я забыл еще написать, что тебе может пригодится&lt;BR&gt;&lt;BR&gt;strip_tags -- Strip HTML and PHP tags from a string&lt;BR&gt;&lt;BR&gt;string strip_tags (string str [, string allowable_tags])</description><pubDate>Sat, 27 Oct 2001 17:46:00 GMT</pubDate><dc:creator>theon</dc:creator></item><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>Правильно настрой локаль.&lt;BR&gt;У меня она все отдает в той кодировке в которой получила!</description><pubDate>Sat, 27 Oct 2001 14:20:00 GMT</pubDate><dc:creator>-Dark-</dc:creator></item><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>Видишь ли  DarkStorm  функция htmlspecialchars (string string [, int quote_style]) дает строку в кодировке в ISO-8859-1 а эта кодировка не поддерживается функцией конвертирования текста convert_cyr_string а других функций я к сожалению не знаю, поэжтому на экран можно получить откровенную билеберду, как же быть?</description><pubDate>Sat, 27 Oct 2001 14:11:00 GMT</pubDate><dc:creator>Оптать</dc:creator></item><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>Ребят, не сорьтесь!&lt;BR&gt;[code]&lt;BR&gt;string htmlspecialchars (string string [, int quote_style])&lt;BR&gt;[/code]&lt;BR&gt;&lt;BR&gt;вот вам замечательная функция для решения всех ваших проблем&lt;BR&gt;&lt;BR&gt;This function is useful in preventing user-supplied text from containing HTML markup, such as in a message board or guest book application. The optional second argument, quote_style, tells the function what to do with single and double quote characters. The default mode, ENT_COMPAT, is the backwards compatible mode which only translates the double-quote character and leaves the single-quote untranslated. If ENT_QUOTES is set, both single and double quotes are translated and if ENT_NOQUOTES is set neither single nor double quotes are translated. &lt;BR&gt;&lt;BR&gt;The translations performed are: &lt;BR&gt;&lt;BR&gt;'&amp;amp;' (ampersand) becomes '&amp;amp;amp;' &lt;BR&gt;'&amp;quot;' (double quote) becomes '&amp;amp;quot;' when ENT_NOQUOTES is not set. &lt;BR&gt;''' (single quote) becomes '&amp;amp;#039;' only when ENT_QUOTES is set. &lt;BR&gt;'&amp;lt;' (less than) becomes '&amp;amp;lt;' &lt;BR&gt;'&amp;gt;' (greater than) becomes '&amp;amp;gt;' &lt;BR&gt;&lt;BR&gt;и не мучайтесь вы с поиском и заменой...</description><pubDate>Sat, 27 Oct 2001 11:51:00 GMT</pubDate><dc:creator>-Dark-</dc:creator></item><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>Какая же это экономия? Нужно при записи менять, т.к. читают чаще, да и при чтении ждать совсем не в кайф...</description><pubDate>Sat, 27 Oct 2001 07:58:00 GMT</pubDate><dc:creator>pipok</dc:creator></item><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>Мужики все нормально, ну что вы прямо как дети, &amp;quot;я так&amp;quot;, &amp;quot;а у меня лучше&amp;quot;, рад что вы подсказали мне путь, но не надо драться по поводу того как этот путь лучше реализовать, конечный результат есть помощь ламеру (мне), а не драка между челами.&lt;BR&gt;  </description><pubDate>Wed, 24 Oct 2001 15:30:00 GMT</pubDate><dc:creator>Оптать</dc:creator></item><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>Я лишь передал смысл, а как это сделать, заменить ли при записи в базу или при выводе из базы решает каждый сам для себя.&lt;BR&gt;Смысл в том что надо эти символы заменять, а как, это дело лично каждого.</description><pubDate>Wed, 24 Oct 2001 15:23:00 GMT</pubDate><dc:creator>dimonych</dc:creator></item><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>тебе понадобятся эти функции&lt;BR&gt;mixed str_replace (mixed search, mixed replace, mixed subject)&lt;BR&gt;int empty (mixed var)&lt;BR&gt;string trim (string str)&lt;BR&gt;string addslashes (string str)&lt;BR&gt;string stripcslashes (string str)&lt;BR&gt;&lt;BR&gt;string htmlentities (string string [, int quote_style]) || string strip_tags (string str [, string allowable_tags])&lt;BR&gt;&lt;BR&gt;2dimonych, не надо избретать велосипед</description><pubDate>Tue, 23 Oct 2001 22:21:00 GMT</pubDate><dc:creator>theon</dc:creator></item><item><title>RE: PHP - как блокировать вывод HTML тэгов в гостевуху</title><link>http://www.relib.com/forums/Topic729541-17-1.aspx</link><description>Спасибо  Мишар, переправил на str.</description><pubDate>Tue, 23 Oct 2001 20:03:00 GMT</pubDate><dc:creator>Оптать</dc:creator></item></channel></rss>