Просмотр поста #14766: Мануал по написанию грабберов!

.
JaguarTL

Помогите пожалуйста. Граб будет работать?
<?php
define('_IN_JOHNCMS', 1);
$headmod ="";
$textl = '';
$rootpath = '../../';
require_once ("../../incfiles/core.php");
require_once ("../../incfiles/head.php");
header("Content-type:text/html; charset=utf-8");

$file = file_get_contents("http://mobimeet.ru/funnyphoto/default.xhtml?".$_SERVER['QUERY_STRING']);
$file=preg_replace('/<?xml(.*?)<div class=\"mainmenu\">/si','',$file);
$file=preg_replace('/<\/div><small>(.*?)<\/html>/si','',$file);
$file = str_replace('</b><a href="', '</b><a href="http://mobimeet.ru/funnyphoto/', $file);

echo $file;
require_once ("../../incfiles/end.php");
?>
а как вырезать именно тут ноги или я уже вырезал?