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!

XML-API Errror - Does not list all pkgs

Discussion in 'General Discussion' started by syphic, Jun 1, 2008.

  1. syphic

    syphic Registered

    Joined:
    Jun 1, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Code:
    	protected function url()
    	{
    		return 'https://'.$this->user.':'.$this->pass.'@'.$this->domain.':2087/xml-api/';
    	}
    	
    	///////////////////////////////////////////////////
    	// Return XML from API
    	
    	public function xml_pkg_list()
    	{
    		$url = $this->url().'listpkgs';
    		return file_get_contents($url);
    	}
    
    When i run this it outputs every pkg on the whole server except the last 2 I added. The xml is showing a total of 6 but I have 8. Could this be a limit to output?
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,483
    Likes Received:
    31
    Trophy Points:
    158
    cPanel Access Level:
    DataCenter Provider
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