![]() |
Quote:
i got a open_basedir restriction error. i cannot test cat /proc/loadavg via the command line cos i am not at home. anymore command line commands to test? i do one shot upon reaching home. |
Ok, we're getting somewhere.
If you want to use latest version of the hack, you'll have to add "/proc" to the list of open_basedir restricted directories. It's done through editing your httpd.conf, or php.ini, or through .htaccess (not sure about last one though). Or, if you want to save the hassle, just roll back to previous version of hack. |
Quote:
thanks, i enable my domain, keeptouch.net and forums.keeptouch.net to allow open_basedir restriction via whm. i can see the server loads now :) |
kmike, i just migrated to a new server running on freeBSD 4.9... the new codes (server loads not showing again) doesn't works anymore... any resolution?
root# ls -ld /proc dr-xr-xr-x 1 root wheel 512 May 2 04:45 /proc root# ls -l /proc/loadavg ls: /proc/loadavg: No such file or directory seems like i need this loadavg... where can i get it? |
Nice hack!
I've got my footer setup with an inside table with a dark border surrounding the content table. Is there a way that I could move the microstats up so it under the vb copyright line? http://www.skinnylizard.com/verge/images/footer.gif http://www.skinnylizard.com/verge |
Nevermind, I figured it out...
I made it a link in my footer that goes to javascript:void(0); and the mouse over lists the page stats... I'll share the code modifications if anyone is interested. |
Quote:
|
In my footer template, I have a link that shows the forum time. You need to find a comon element that's in your footer and nowhere else in you site or this will cause problems.
Code:
<a style="text-decoration:none" title="All times are GMT$timediff. The time now is $timenow" href="javascript:void(0);"><b>Forum Time</b></a> Code:
$vartext = str_replace('<b>Forum Time</b></a>', "<b>Forum Time</b></a> | <a style=\"text-decoration:none\" title=\"$debughtml\" href=\"javascript:void(0);\"><b>Page Stats</b></a><br>",$vartext); Code:
$debughtml = "Page generated in $totaltime seconds with $query_count queries"; |
d3nnis: freebsd doesn't have /proc/loadavg, you'll have to resort to the previous version of this hack which invokes "loadavg" command.
|
Quote:
ohh okie... ermm i dun have the codes anymore... anyone has it? |
All times are GMT. The time now is 08:07 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:
|