Add to Google

Disk Usage Query

free web hosting
Open Discussion > Have your say > Support and Feedback > Questions & Queries

Disk Usage Query

Mjay06
The xoops script I installed was taking up nearly all my available disk usage (18.44mb) so I decided to uninstall xoops & start again using a smaller script.

I deleted everything relating to xoops, including the mysql database, checked the disk usage screen which showed hardly anything, went to install another script but I am still using 18.44 mb.

Am I missing something blatantly obvious which I need to do to lower this?

Thanks

Comment/Reply (w/o sign-up)

jlhaslip
It takes a while for the statistics script to adjust your stats. The script is only run occasionally, but don't know exactly how often or I would mention it here.
Regardless, the stats for your site will be updated the next time the script is run and then you will be able to install additional scripts.

Comment/Reply (w/o sign-up)

wappy
or you could create a script to tell you how much disk space has been used on your account (not including database) i learnt how to do it on php.net you can use this code:
CODE

function dskspace ($dir)
{
$s = stat ($dir);
$space = $s ["blocks"]* 512;
if (is_dir ($dir))
{
$dh = opendir ($dir);
while (($file = readdir ($dh)) !==false)
if ($file != "." and $file != "..")
$space += dskspace ($dir . "/" . $file);
closedir ($dh);
}
return $space;
}

the above code is a function and you can use it on many pages if you put it in a file (for example filefunction.php) and include it on which ever page you wish. Then add this code to the page:
CODE

include ('filefunction.php');
$all = dskspace ('./'); //change this to the directory you want to tell the size of it will give size of that directory and all sub directorys :-)
$all = round ($all/1024000,1);
$mb = "mb";
echo "-Used: $all$mb<br/>";

enjoy :-)

 

 

 


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Similar Topics

Keywords : Disk Usage Query

  1. A Question Regarding Credits - A query about upgrading. (8)
  2. Disk Space - (0)
    Not sure if this is in the right place, but is there any chance of temporarily increasing my disk
    space allocation? The reason is that ive uploaded various modules (im using Xoops), & im not sure
    what the punters like/dont like until ive let them run for a few days. Once I get some feedback ill
    be able to remove the parts of the site that are not going to be used. Thanks....
  3. Wordpress Upgrade Makes Increase In Disk Space - (3)
    Hi,there i have upgraded the wordpress to 2.0.3 from fantastico control panel.This increased the
    disk space of my web space.Now with every upgrade, disk space will be increased.How can i delete the
    old backup or reduce the size of the disk space? Please help. Thanks in advance....
  4. Query About Maximum Number Of Free Hosting Accounts - (5)
    How many accounts can a user have in the free hosting service....
  5. Point Usage? - Store? (6)
    Mods can move this if I put it in the wrong place, but to me this seems like an ok place to ask
    this. Other than using the points to keep track of active players and using them to "buy" webspace,
    do you have a store that you can buy things with points? You could buy like more space, or
    bandwidth, or items for the forum like a custom title, or colored username or something? Do points
    have a use other than being used to buy webspace?...
  6. Is Php5 & Downloads Supported? - Query : Services offered by Trap17 (4)
    There are only a few small differences between php 4 and php 5 but some php 5 doesnt work on this
    site. Does the site allow php 5. Im wondering cause all i no is php 5 and some stuff isnt working.
    Also would it be alright if i took some stuff and uploaded it on my website for people to download.
    Or is there restrictions and stuff...
  7. Lost Connection To Mysql Server During Query - (0)
    Hello Everyone... I need to put in the images table of the DB, 10 pictures of 60kb each one, when i
    do that, i lost the connection, but if a upload 10 pictures of 10kb each one, i haven't got the
    problem. I'm getting the following error when I run my select query within my VB code: Lost
    connection to MySQL server during query. This seems like a timeout error to me, but I don't
    know how to compensate so that it doesn't time out. I read in some places that there is a
    max_alloweb_timeout or something, that is set by the Hosting Provider, so Any sugge...
  8. Disk Space Exceeded? - (0)
    Disk usage 30.04 / 20.00 MB SQL Disk usage 0.00 MB Disk space available -10.04 MB I
    orignally posted in the hosted members area but was instructed to post here for more assistance. I
    believe an Admin may need to reset my entire 'site/package' which is not a problem since I
    have nothing stored on it, because nothing will fit. The Problem: I created my new hosting account
    using the 'process' and then when I went to upload stuff its says my disk space has been
    exceeded. I went to my cpanel yesterday (cant acccess it right now, im guessing server...
  9. Disk Usage - More than I've used (1)
    Well, in the CPanel, I've found my disk usage size is: Disk usage 105.64 /
    150.00 MB SQL Disk usage 2.34 MB Disk space available 44.36 MB which is not
    true... I already deleted a mambo page, and get aprox. 15 MB liberated, but it didnt change the disk
    usage indicator at all. I supposed it would take a bit more days, but it's been almost a week
    and still the same /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> Not quite
    sure if this is normal. Thank you for your help /biggrin.gif' border='0' style='v...



Looking for disk, usage, query

Searching Video's for disk, usage, query




advertisement



Disk Usage Query