1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

how do i get user_beancounters in a php script?

Discussion in 'Plesk for Linux - 8.x and Older' started by hubb, Apr 19, 2006.

  1. hubb

    hubb Guest

    0
     
    how do i read user_beancounters in a php script?

    it's weird. i'm trying to write a php script that displays the user_beancounters on a web-page (not in shell).
    but whatever i try, i don't get any content out of "cat /proc/user_beancounters".

    at the same time "cat /proc/meminfo" works perfect. safe_mode is off. permissions for meminfo and user_beancounters are the same -r--r--r--

    whats wrong here? please..... thanx!

    here's the script:

    PHP:
    echo "beans:<br>\n";  
    exec('/bin/cat /proc/user_beancounters'$beans$ret1);  
    var_dump ($beans); 
    echo 
    "<br>return: "$ret1
    echo 
    "<br><br>meminfo:<br>\n"
    exec('/bin/cat /proc/meminfo',$mem$ret2); 
    var_dump ($mem); 
    echo 
    "<br>return: ".$ret2;  

    here's the result:


     
  2. cb2206

    cb2206 Guest

    0
     
    Hi,

    I have the same problem. Did you find an answer?

    Thanks a lot!
    Christian
     
  3. ednique

    ednique Guest

    0
     
Loading...