![]() |
Quote:
|
Quote:
|
I guess I should have said "you won"? I forgot it was your other program. :) Oops! Sorry. :)
|
Quote:
[Server UpTime: 9 days, 3 hours and 40 minutes and 775307 seconds] |
Hmmm, I can't test it in a live envionment because my server doesn't support the uptime, or passthru (PHP in save mode)...
But technically this is what it does: $sys_ticks - shows the no. of seconds since the system is up ( $days * 60 * 24 ) - the days ( $hours * 60 ) - the hours ( $min * 60 ) - the minutes Removing all those values should give you the seconds only... maybe one of the php gurus can explain what we do wrong? In theory it should work... You could also do this... replace the function with this line: Code:
$serveruptime = passthru( '/usr/bin/uptime' ); |
I just tried the passthru code you gave me and nothing shows up with that.
|
passthru() returns nothing. You need to use exec('whatever', $output) and then $output will be an array containing the output from the program. If you only need the last line of output, simply do $line = exec('whatever').
|
You got me on this one, Chen. (By the way, "hello and it's good to hear from you. :)) You're explanation went way over my head. All I am trying to do is get the seconds to show out of the code Teck gave me. Can you help me on that, please? :)
|
Quote:
Why would it be a security risk for someone to read from the "/proc" in a *nix box? This is what my isp is telling me why they disabled this feature? And if this is disabled, is it possible to get your hack to work with the other statistics (ex: MySQL - PHP - G-ZIP)? Thanks in advance! |
You are running PHP in safe mode. My host does it also. That's life... you can't do nothing about it.
|
All times are GMT. The time now is 11:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|