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.

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:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page