Strict Standards: Resource ID#26 used as offset, casting to integer (26) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/fm.class.php on line 401

Strict Standards: Resource ID#28 used as offset, casting to integer (28) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/fm.class.php on line 401

Strict Standards: Resource ID#29 used as offset, casting to integer (29) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/fm.class.php on line 401
ТвойWeb :: Версия для печати :: Добавление текста в базу данных и выведение номера строки [3]
ТвойWeb » WebMaster класс » PHP/Perl » Добавление текста в базу данных и выведение номера строки

Страниц (3): « 1 2 [3]
 

21. Vladimir - 02 Октября, 2008 - 01:46:58 - перейти к сообщению
Спасибо большое!

CODE:
("мама", "мыла", "раму");
Это возможно ли вывести в другой файл?
22. Furax - 02 Октября, 2008 - 02:06:36 - перейти к сообщению
Можно. Допустим, в текстовый файл по одному слову на строку. Тогда так:
CODE:
$words = file("words.txt");
$good = false;

foreach ($words as $word)
if (strpos($_POST['text'], trim($word))!==FALSE)
{
$good=true;
break;
}
if (!$good)
{
header("location: error.htm");
exit();
}
23. Vladimir - 03 Октября, 2008 - 11:07:26 - перейти к сообщению
Спасибо!

Форум на AlfaSpace.NET


Powered by ExBB
ExBB FM 1.0 RC1 by TvoyWeb.ru
InvisionExBB Style converted by Markus®

[Script Execution time: 0.0347]     [ Gzipped ]



Notice: ob_end_flush(): failed to send buffer of ob_gzhandler (1) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/page_tail.php on line 33