Есть задача: с php страницы одного сайта унести инфу (причём не всю) на страницу другого сайта.
перепробовал кучу скриптов - не работает(
Код:
<?
$source = file_get_contents('тут адрес пишу');
//die($source);
if (!$source) die('Nothing found!');
preg_match_all('|align="top" vspace="2"></a>(.*?)</td>\s<td class="tdcontentsm">(.*?)</td>\s</tr>|is', $source, $match, PREG_SET_ORDER);
if (sizeof($match) < 1) die('No results');
die(print_r($match));
?>
Код:
<? *
$fd= fread(fopen("тут адрес пишу", "r"), 100000); *
if ($fd) *
* * * *{ *
* *$start= strpos($fd, "<html>"); *
* *$finish= strpos($fd, "</html>"); *
* *$length= $finish-$start; *
* *$code=Substr($fd, $start, $length); *
* *} *
echo $code; *
?>
и ещё много каких...
что скажете полезного?