$str=file_get_contents("$page"); preg_match_all("/ » <b>Текст:<\/b>(.+?)<BR> » /", $str, $name); echo "<strong>Текст:</strong>"; echo $name[1][0]; echo "<br>";
The problem is that the links on the site have an abbreviated view, like index.php. Therefore, on my website, the same links do not work. How can you replace href = "ssilka.php" with href = "http://www.sait.ru/ssilka.php". Well, or somehow create a page ssilka.php on my website that would redirect to that site and save the _GET method in the link.