Hi,
I try to copy some text for and html page to create a block linked to the native page.
Here my code:
<?php
$file = fopen("http://cyberdsk-14/php/testperso/banque1.html", "r");
if (!$file) {
echo "<p>Impossible d'ouvrir le fichier distant.\n";
exit;
}
while (!feof($file)) {
$line = fgets($file, 1024);
/ Cela ne fonctionne que site le titre est écrit sur une ligne./
if (eregi("<TEST>(.*)</TEST>", $line, $out)) {
$title = $out[1];
break;
}
}
fclose($file);
echo $title;
?>
I'm trying to read the text on a few line. I can only read it if the html page goes this way:
<!--
<TEST>HELLO</TEST>
-->
But can`t see it when it's:
<!--
<TEST>
HELLO</TEST>
-->
Thanks for your help