Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. PHP quota on server

PHP quota on server

Scheduled Pinned Locked Moved Web Development
linuxphpapachesysadmindata-structures
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JR212
    wrote on last edited by
    #1

    Hi, Can someone gives me an idea how to get the quotasize on a synology server. The server works with apache 2.4 and php 7.4. I can use exec commands I know disk_free_space and disk_total_space but those commands don't look at quota. Jan I've been lookking with

    $pad = '/volume5/web';
    foreach (array(
    'quota -u jan',
    'df',
    'du'
    ) as $cmd) {
    echo $cmd . '
    ';
    passthru($cmd);
    echo '


    ';
    }
    $used = exec("du -c -a $pad");

    echo 'used: ' . $used . '
    ';
    echo 'quota: ' . exec("quota -u jan") . '
    ';

    $var = exec("cat " . pad . " | grep domz | tail -n 1 | awk '{print $4}'");
    echo 'var: ' . $var . '
    ';

    But so far no luck :(

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups