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.

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:
    1
    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:
    1
    Please help me out here!?
     
Loading...

Share This Page