Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

StatsBar::stat

Discussion in 'cPanel Developers' started by morissette, Nov 9, 2011.

  1. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Whether opening this via file_get_contents() or defining as variable the value of the variable is always the CODE and not the return value; however am able to output the actual diskusage which confuses me.

    Code:
    <?cp StatsBar::stat(% ,count) display=diskusage ?>
    
    Is there anyway around this?

    strlen() gives me 50(the length of the code above) but when I define say:

    $my_quota = "<?cp StatsBar::stat(% ,count) display=diskusage ?>";

    $my_quota returns the actual quota but I am not able to use this quota for a comparison as the actual sting contains the code and not the value of the code excuted.

    My apologizes for the lack of explanation.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    FAIL...... as simple as using cpphp instead of phpcp extension. - Issue Resolved!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice