Mailinglisten-Archive |
so:
<?php
$file = fopen("http://www.garagestudios.de/", "r");
if (!$file) {
echo "<p>Unable to open remote file.\n";
exit;
}
while (!feof($file)) {
$line = fgets($file, 1024);
/* This only works if the title and its tags are on one line. */
if (eregi("<title>(.*)</title>", $line, $out)) {
$title = $out[1];
break;
}
}
fclose($file);
?>
hast du das gemeint?
cu
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*
GarageStudios Internet Solutions: http://www.garagestudios.de
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*
----- Original Message -----
From: Lars Scholand <lars.scholand_(at)_provider-info.de>
To: <php_(at)_solix.wiso.Uni-Koeln.DE>
Sent: Sunday, November 14, 1999 1:06 AM
Subject: [php] Feststellen ob eine Datei existiert
> Hallo,
>
> wie kann ich feststellen ob eine Datei exisitert. Wenn ich es mit
> readfile versuche, dann bekomme ich eine PHP-Fehlermeldung,
> dass die Datei nicht exisitiert. Genau dies will ich aber abfangen.
>
> Besten Dank !
>
> Lars
>
>
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_infosoc.uni-koeln.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php
php::bar PHP Wiki - Listenarchive