// PHPMyLinks version 0.1.4, Copyright (C) 2000, Rémi Henriot // http://rhenriot.free.fr/phpmylinks/ - rhenriot@mail.com // // This is free software ; you can redistribute it and/or modify it // under the terms of the PHPMyLinks License Version 1.0 // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY ; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // For more details, see the license.txt file that you should have // received with this program. require 'modif.inc.php'; // check URL string if(strlen($url_str)==0) error("url vide"); $url = $url_str; if(! ereg('http://', $url)) $url = 'http://'.$url; // search for the title of the page $desc_fichier = @fopen($url, "r"); if(! $desc_fichier) error("impossible d'ouvrir ".$url); $html = 'rien'; while (!isset($title) && strlen($html) != 0) { $html = fread($desc_fichier, 2000); if(eregi("