Показать сообщение отдельно

  #4  
Старый 21.01.2009, 00:53
geforce
Постоянный
Регистрация: 21.08.2008
Сообщений: 302
С нами: 9326973

Репутация: -25
Question

Пишу свой первый парсер почему ничего не выводит?

PHP код:
<?php // мой первый парсер
$cont file_get_contents('http://webteach.ru/');
$pos strpos($cont,'<div class="feat_title"><a href="http://webteach.ru/2008/12/29/paru-slov-o-biblioteke-gd/" rel="bookmark" title="Ссылка на Пару слов о библиотеке GD">Пару слов о библиотеке GD</a></div>' );
$cont substr($cont,$pos );
$pos strpos($cont,'<div class="column span-7 first">© 2008 PHP скрипты. Школа вебмастеров.. <a href="http://webteach.ru/feed/"><img src="http://webteach.ru/wp-content/themes/tma/images/bg/feedicon12.png" alt="RSS" style="vertical-align: top; margin: 2px 0 0 7px;" /></a></div>' );
$cont substr($cont0$pos);
echo 
$cont;
?>
 
Ответить с цитированием