Hello,
When i try to list information from an account i am getting reply back in XML format.
<accountsummary>
−
<acct>
<disklimit>999999M</disklimit>
<diskused>2083M</diskused>-->
- <domain>domain.com</domain>
- <email>emailaddress@gmail.com</email>
- <ip>192.168.1.1</ip>
- <owner>resellername</owner>
- <partition>home</partition>
- <plan>ul</plan>
- <startdate>09 Mar 02 14:30</startdate>
- <suspended>0</suspended>
- <suspendreason>not suspended</suspendreason>
- <theme>x3</theme>
- <unix_startdate>1220383821</unix_startdate>
- <user>username</user>
- </acct>
- <status>1</status>
- <statusmsg>Ok</statusmsg>
- </accountsummary>
- −
- <!--
- Web Host Manager (c) cPanel, Inc. 2008 http://cpanel.net/ Unauthorized copying is prohibited.
I want to use XML API only (dont want to use /script/blah!blah!)
I think SimpleXML will work out!
But it seems to be a bit hard. Please tell me a way the get this data into a variable like.
$domain = xml_array(domain);
$email = xml_array(email);
$plan = xml_array(plan);
echo "
Account Information:
Domain: $domain
Email: $email
Plan: $plan
";
Guys Please help me to do something like this.....
Thanks in advance!



LinkBack URL
About LinkBacks
Reply With Quote






