- Kvotaberegning -

For de af vores kunder der ligger på en Unixserver hos os, giver FTPservicen desværre ikke information om hvor meget plads der er tilbage på webhotellet. Dette skyldes at kvota normalt beregnes ud fra, hvilke filer der ejes af brugeren og dette beregner FTPservicen ikke.

Kvota bliver derfor beregnet af selve unixsystemet på filniveau. Hvis du har brug for at vide dit præcise forbrug, kan du altid henvende dig til vores supportafdeling, så kan de oplyse dette. Har du dog blot brug for et løbende tjek, kan du anvende nedenstående script, som tæller sammen og beregner hvor meget du har liggende i webscope for dit webhotel (www folderen).

Bemærk, scriptet beregner ikke hvad du har liggende udenfor din /www folder. Eksempelvis de filer du har liggende i din /db og /phpupload folder.

<?php

function OpenDirectory($THE_DIR, $TOTAL_SIZE) 
{
  if($dir = @opendir($THE_DIR)) 
  {
    while($file = @readdir($dir)) 
    {
      $THE_DIR . "/" . $file . "<br/>";
      if(is_file($THE_DIR . "/" . $file))
      {
        $TOTAL_SIZE += filesize($THE_DIR . "/" . $file);
      }
      elseif(is_dir($THE_DIR . "/" . $file))
      {
        if((strval($file) != "..") && (strval($file) != "."))
        {
          $THE_NEW_DIRECTORY = $THE_DIR . "/" . $file;
          $TOTAL_SIZE = OpenDirectory($THE_NEW_DIRECTORY, $TOTAL_SIZE);
        }
      }
    }
    closedir($dir); 
  } 

return $TOTAL_SIZE; 
} 

$TOTAL = OpenDirectory($_SERVER["DOCUMENT_ROOT"], 0); 
$conv = $totalsize+$TOTAL;

echo "";
echo "<h3>";
echo $_SERVER["HTTP_HOST"];
echo " forbruger i øjeblikket ";
echo ($conv/1000000);
echo " MB";
echo " serverplads";
echo "</h3>";
?>

Referencer

crossfit

"Team CrossFit Copenhagen takker for støtten fra Azero i vores kamp for at nå til CrossFit Games (VM) i Californien i Juli."

Nikolaj Rønnow

2015-01-19T11:02:53+00:00

Nikolaj Rønnow

crossfit
"Team CrossFit Copenhagen takker for støtten fra Azero i vores kamp for at nå til CrossFit Games (VM) i Californien i Juli."
eyeforimage

Azero has been Eye for Image's ISP from the very beginning. It's reassuring to know that they not only have a great array of products, but that we can always get relevant and timely information from their professional support team, by just picking up the phone and talking to someone.

Matt Coyle, Technical Copywriter / Eye for Image ApS

2015-01-20T03:47:24+00:00

Matt Coyle, Technical Copywriter / Eye for Image ApS

eyeforimage
Azero has been Eye for Image's ISP from the very beginning. It's reassuring to know that they not only have a great array of products, but that we can always get relevant and timely information from their professional support team, by just picking up the phone and talking to someone.

Kontakt Azero

Firmainformationer

AzeroCloud ApS
Nørregade 33
8464 Galten
CVR: 38 70 69 93
VAT: DK38706993

Telefon

Telefon: 38 19 50 17
 

Normal telefontid

Man-Fre: 10:00-12:00