Einzelnen Beitrag anzeigen

abc newbee
(Gast)

n/a Beiträge
 
#4

Re: [PHP] Überprüfen ob eine best. URL erreichbar ist

  Alt 7. Apr 2007, 13:05
So... das Problem ist gelöst...

So gehts:

Code:
<?php

  $online = @fsockopen("www.meineurl.de", 80, $errno, $errstr, 30);
  if ($online==true)
  {
    Header("Location: online.html");
  }
  else
  {
    Header("Location: offline.html");
  }

?>
Man braucht noch ein "@"
  Mit Zitat antworten Zitat