![]() |
Quote:
|
Quote:
|
Quote:
Please post the full IF change so others could see it and paste it properly. :) If it's working better your way, the hell with the code performance, we will use what's better, right? :D Cheers. |
Here's what I did. I changed:
PHP Code:
PHP Code:
Sorry about this Floren. ;) |
Quote:
Code:
if ($stats = @exec('uptime 2>&1') AND trim($stats) != '') |
Yes, that works, too. ;)
|
Ok, let's leave it then this way, what do you think?
Basically, we will remove only the IF in front of PREG_MATCH function... I'm still persistent with the IF... Leave the IF and try to refresh several times the page so you can create a server load. Let me know if it'S displaying the stats. Sorry to bother you but I don't have access to a UNIX server now. I will update the file when I get back from work. |
Looks good to me. ;)
If I don't remove the IF, the server load doesn't show at all. ;) |
Quote:
Code:
if (preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/", $stats, $regs)) PS. Damn I deleted by accident the image, instead of the file, no more screenshot till tonight... We have one from Bob anyway, heh. |
This is wierd. I re-downloaded your file and put the if code in like you have it in your file and for some reason, it is showing the server load now (with the IF statement). I swear to you that it wasn't working before. I don't know what happened. You have any ideas? ;)
|
All times are GMT. The time now is 12:05 PM. |
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:
|