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.

Need help with output XMPLAPI.php

Discussion in 'cPanel Developers' started by waleedkhan, Nov 24, 2014.

  1. waleedkhan

    waleedkhan Registered

    Joined:
    Nov 23, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi i need help and i hope and i think i will get solution here as i am trying to get


    $xmlapi->api2_query( $account, 'ZoneEdit', 'fetchzone', array( "domain" => $domain,"name"=>'subdomainname' ) ))

    after that when i echo it in php i get space and blank page so i do
    var_dump($xmlapi->api2_query( $account, 'ZoneEdit', 'fetchzone', array( "domain" => $domain,"name"=>'subdomainname' ) ))

    and i got the result

    Code:
    object(SimpleXMLElement)#2 (5) { ["apiversion"]=> string(1) "2" ["data"]=> object(SimpleXMLElement)#4 (4) { ["record"]=> object(SimpleXMLElement)#5 (8) { ["name"]=> string(21) "qaz.outclasshost.com." ["Line"]=> string(2) "58" ["address"]=> string(15) "206.190.159.177" ["class"]=> string(2) "IN" ["line"]=> string(2) "58" ["record"]=> string(15) "206.190.159.177" ["ttl"]=> string(5) "14400" ["type"]=> string(1) "A" } ["serialnum"]=> string(10) "2014112401" ["status"]=> string(1) "1" ["statusmsg"]=> string(15) "Zone Serialized" } ["event"]=> object(SimpleXMLElement)#3 (1) { ["result"]=> string(1) "1" } ["func"]=> string(9) "fetchzone" ["module"]=> string(8) "ZoneEdit" } 
    so all i need is line number so can u plz tell me how can i store line number in my variable plz complete code will be highly appreciated
     
  2. waleedkhan

    waleedkhan Registered

    Joined:
    Nov 23, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    o i sort it ijust converted the output to json

    - - - Updated - - -

    plz close this or remove this thread thx
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see the issue was addressed. Thank you for updating us with the outcome.
     
Loading...

Share This Page