הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   ארכיון (https://hosts.co.il/forums/forumdisplay.php?f=71)
-   -   בדיקת System Uptime (https://hosts.co.il/forums/showthread.php?t=39905)

JoinWeb.co.il 15-02-07 18:23

בדיקת System Uptime
 


<%@ Page Language="VB" Debug="true" %>
<%@ Import Namespace="System" %>


<script language="VB" runat=server>
Function GetUptime() as String
Dim iMiliSecondsUp = Environment.TickCount
Dim iDays as Integer, iHours as Integer, iMinutes as Integer, iSeconds as Integer
Dim strUptime as String

iDays = iMiliSecondsUp / 86400000
iMiliSecondsUp = iMiliSecondsUp Mod 86400000
iHours = iMiliSecondsUp / 3600000
iMiliSecondsUp = iMiliSecondsUp Mod 3600000
iMinutes = iMiliSecondsUp / 60000
iMiliSecondsUp = iMiliSecondsUp Mod 60000
iSeconds = iMiliSecondsUp / 1000
iMiliSecondsUp = iMiliSecondsUp Mod 1000

strUptime = iDays & " days, " & _
iHours & " hours, " & _
iMinutes & " minutes"
GetUptime = strUptime
End Function
</script>

Server uptime is <%=GetUptime%>


RazRaz 15-02-07 18:28

תודה רבה :P

Yehuda-d.com 15-02-07 18:34

יש לך בPhp?

JoinWeb.co.il 15-02-07 18:51

ציטוט:

נכתב במקור על ידי Yehuda-d.com (פרסם 423583)
יש לך בPhp?

http://phpsysinfo.sourceforge.net/


כל הזמנים הם GMT +2. הזמן כעת הוא 16:20.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ