Ankündigung

Einklappen
Keine Ankündigung bisher.

Server Online Abfrage

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Server Online Abfrage

    Hi ich scheitere am Ansatz.
    Habt ihr eine Idee, wie ich eine so eine Abfrage gestalten könnte:
    Unser Server (IPxxxx) ist ONLINE?
    Geht sowas mit PHP vielleicht gar nicht?

    Viele Grüße,
    Kort
    "Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." - Linus Torvalds, 1996

  • #2
    das müsste mit fsocketopen gehen
    aber viel weiss ich dazu auch nicht.

    Kommentar


    • #3
      Hab das Thread hier gesehen, dann habe ich schnell mal was gemacht,
      weiss aber nicht ob es geht

      PHP-Code:
      <?php

      $zahl 
      "deine_ip"##trag hier deine ip ein, und prob es ;)

      function ipfind($ip){
          if(
      $ip) {
              
      $file = @fopen ($ip"r");
          }
          if(
      $file){
              return 
      true;
              
      fclose($file);
          } else {
              return 
      false;
          }
      }

      $ip "$zahl";
      if(
      ipfind($ip)){
          print 
      $ip."ist vorhanden, und erreichbar!";
      } else {
          print 
      $ip."ist nicht vorhanden und auch nicht erreichbar!";
      }
      ?>

      Kommentar


      • #4
        irgendwie gehts nicht:

        ping bei mir für z.B. 83.133.97.206 OK
        aber das Script
        Code:
        83.133.97.206ist nicht vorhanden und auch nicht erreichbar!
        "Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." - Linus Torvalds, 1996

        Kommentar


        • #5
          Versuchs mal damit:
          http://test.php-help.info/fsockopen-5/ (Quelltext wird angezeigt)

          Kommentar


          • #6
            Jetzt gehts!

            Danke
            "Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." - Linus Torvalds, 1996

            Kommentar

            Lädt...
            X