function trackbackCount($filetrack) { $numero = 0; if (file_exists("./cgi-bin/tb_rss/".$filetrack.".xml")) { $fichero = "./cgi-bin/tb_rss/".$filetrack.".xml"; $fxml = fopen( $fichero,"r"); while (!feof($fxml)) { $xmlreg = fgets($fxml, 4096); $item = substr($xmlreg,0,6); if ($item == "") { $numero = $numero + 1; } } fclose($fxml); } else {$numero = "0";} return $numero; }