WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   asp script hilfe (http://www.wcm.at/forum/showthread.php?t=125051)

Nightman 11.02.2004 18:26

asp script hilfe
 
hi an alle

hab vor ein script zu schreiben in asp das folgendes macht

überprüft ob eine bestimmte ip bzw server vorhanden ist wenn nicht dann ladet er eine errorseite nach wahl

funzt das irgentwie wenn ja wie?

THX

snowman 11.02.2004 21:01

erklär mal verständlich, was du genau willst.

gruss,
snowman

3of4 12.02.2004 00:03

Du könntest dir die Komponente aspPing (http://www.serverobjects.com/comp/aspping.zip) runterladen.
Damit kannst du einen Host anpingen und schauen ob er antwortet.

Gibts unter http://www.serverobjects.com/products.htm ganz unten unter free ;)

Nightman 12.02.2004 01:09

hab asp ping installiert aber funzt ned wirklich

link

-----------------------------
<%
rem ************************************************** *********
rem * Create the object
rem ************************************************** *********
Set Pinger = Server.CreateObject("AspPing.Conn")

rem ************************************************** *********
rem * Set the host we'll be pinging
rem ************************************************** *********
Pinger.RemoteHost = "www.microsoft.com"

rem ************************************************** *********
rem * Optional count for number of times to ping remotehost
rem * defaults to 1
rem ************************************************** *********
Pinger.PingCount = 2


rem ************************************************** *********
rem * Ping and then dump the results
rem ************************************************** *********
Response.Write "<pre>" & Pinger.Ping & "</pre>"

rem ************************************************** *********
rem * Release the object
rem ************************************************** *********
Set Pinger = nothing

%>

JoergStueger 12.02.2004 09:24

Kann microsoft.com auch net pingen, bei anderen domains funktionierts!!!

Änder das mal.

http://www.utl.at/ping.asp

.dll hast laut anleitung registriert?



LG
Joerg


Alle Zeitangaben in WEZ +2. Es ist jetzt 06:08 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag