|
<?php
$GrabURL = "http://localhost/index.php";
$GrabStart = "Привет!";
$GrabEnd = "Пока!";
$OpenFile = fopen("$GrabURL", "r");
$RetrieveFile = fread($OpenFile, 200000);
$GrabData = eregi("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint);
$link = preg_replace("#<a(.*?)>(.*?)</a>#","\\1...\\2",$DataPrint[1]);
fclose($OpenFile);
echo $link;
?>
Опять же пробуй а прег можно сделать нормальным
__________________
There is no fate but what we make for ourselves.
|