Wie uptime in HTML bekommen?

ww

Well-Known Member
Hallo zusammen,

kann mir bitte jemand einen Tip geben, wie ich den Output von "uptime" beispielsweise via PHP auf eine Website bekomme?

Danke sehr,
slatat2m
 
Code:
<? passthru ('/usr/bin/uptime'); ?>
Oder per Script in ne Datei einfügen, die von PHP eingelesen/includiert wird
oder ...


Edit:
,----[ http://de3.php.net/manual/en/ref.exec.php ]
|
| escapeshellarg -- Escape a string to be used as a shell argument
| escapeshellcmd -- Escape shell metacharacters
| exec -- Execute an external program
| passthru -- Execute an external program and display raw output
| proc_close -- Close a process opened by proc_open() and return the exit code of that process.
| proc_get_status -- Get information about a process opened by proc_open()
| proc_nice -- Change the priority of the current process
| proc_open -- Execute a command and open file pointers for input/output
| proc_terminate -- kills a process opened by proc_open
| shell_exec -- Execute command via shell and return the complete output as a string
| system -- Execute an external program and display the output
|
`----
 
Zuletzt bearbeitet:
Zurück
Oben