Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
phoenix-cms
Worker
Worker



Joined: Aug 05, 2005
Posts: 139

PostPosted: Mon Sep 12, 2005 12:27 am Reply with quote

hi everyone and raven
i need of little support here i not sure what to add but i do know its in footer i added phpbb gen scripts to my 7.6 distro
but now i need to show memory usage anyone know any scripts or code so i can show script memory usage

like www.codezwiz.com

any help or scripts links i be most greatfull

thanks
 
View user's profile Send private message Send e-mail
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Mon Sep 12, 2005 4:55 am Reply with quote

Im looking for that but it has some limitations...
memory_get_usage() will only be defined if your PHP is compiled with the enable-memory-limit configuration option,not everybody has that.
And cpg-nuke uses that also..

But the code would be :
Code:
<?php

// This is only an example, the numbers below will
// differ depending on your system
echo memory_get_usage() . "\n"; // 36640
$a = str_repeat("Hello", 4242);
echo memory_get_usage() . "\n"; // 57960
unset($a);
echo memory_get_usage() . "\n"; // 36744
?>
 
View user's profile Send private message
phoenix-cms







PostPosted: Mon Sep 12, 2005 2:06 pm Reply with quote

well looks like i need to recompile apache good thing i use visual studio Very Happy
 
phoenix-cms







PostPosted: Mon Sep 12, 2005 3:47 pm Reply with quote

i got this working but could also be snag, do you know if there any cms, forum php code that has memory usage so i can see how they do it and mod it for nuke
thnks
 
hitwalker







PostPosted: Mon Sep 12, 2005 3:51 pm Reply with quote

well the only few i know off is codezwiz and cpgnuke,i never thought of this before....
personaly i see it as additional info in whitch nobody is interested..
not to mention the footer,they never see that....
 
phoenix-cms







PostPosted: Mon Sep 12, 2005 3:56 pm Reply with quote

well reason i need this is because i moded nuke nuke 7.6 somuch to work with cpg, postnuke and even basic mambo but for developers because in config you can set what you want to display at current mysql and php times and time for script to be compiled and also the snag i talking about i have 3 servers 1 reseller and 2x dedicated and i had to recompile php on them and this could be issue for people that want to enable it,
i have found few stats programes tht show memory usage on unix based servers
and then i have another snag windows iis servers or windows apache etc

maybe best if u leave this out at current and just keep to my enhanced kc33

thanks
 
hitwalker







PostPosted: Mon Sep 12, 2005 4:09 pm Reply with quote

well good luck with it... Smile
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©