The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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.
     
  2. morissette

    morissette Well-Known Member

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

Share This Page