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!

is there a simpler way? PACKAGES

Discussion in 'General Discussion' started by webadpro, Mar 4, 2006.

  1. webadpro

    webadpro Member

    Joined:
    Dec 7, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    hello,

    I'm macking a script and I this is what I use to get only the page names.

    Code:
    $result = whmreq ($request,$host,$user,$accesshash,0);
    	if ($cpanelaccterr != "") { return; }
            $page = split("\n",$result);
    
            foreach ($page as $line) {
            list($pkg) = split("=", $line);
            if ($pkg != "") {
                $allc = " ";
            $pkgs[$pkg] = $allc;
    
             echo "<a href='p_newpkg.php?action=newamfrac&id=$pkg'>" . $pkg . "</a><br>";
    
    
            }}
    I was wondering if there's a simpler way to make this, to use less resource?

    Regards,
    Pat
     
  2. webadpro

    webadpro Member

    Joined:
    Dec 7, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Please help me out here!?
     
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