ThaiSEOBoard.com

พัฒนาเว็บไซต์ => Programming => ข้อความที่เริ่มโดย: O.o!! ที่ 22 ตุลาคม 2011, 13:41:55



หัวข้อ: ถามเกี่ยวกับ response ของ XML-RPC หน่อยคร๊าาาบ :S
เริ่มหัวข้อโดย: O.o!! ที่ 22 ตุลาคม 2011, 13:41:55
คือได้ response ในรูปแบบนี้มาแล้ว แล้วคราวนี้ผมจะเก็บค่า 606 ใส่ $variable ทำยังไงครับ  :wanwan011:

โค๊ด:
<?xml version="1.0"?>
<methodResponse>
  <params>
    <param>
      <value>
      <string>606</string>
      </value>
    </param>
  </params>

</methodResponse>


หัวข้อ: Re: ถามเกี่ยวกับ response ของ XML-RPC หน่อยคร๊าาาบ :S
เริ่มหัวข้อโดย: ohmohm ที่ 22 ตุลาคม 2011, 16:47:44
แบบนี้ได้ไหม
http://php.net/manual/en/function.simplexml-load-string.php


หัวข้อ: Re: ถามเกี่ยวกับ response ของ XML-RPC หน่อยคร๊าาาบ :S
เริ่มหัวข้อโดย: O.o!! ที่ 23 ตุลาคม 2011, 00:28:48
แบบนี้ได้ไหม
[url]http://php.net/manual/en/function.simplexml-load-string.php[/url]


อันนี้เลยครับที่ต้องการ ขอบคุณครับ +1


หัวข้อ: Re: ถามเกี่ยวกับ response ของ XML-RPC หน่อยคร๊าาาบ :S
เริ่มหัวข้อโดย: Tee++; ที่ 23 ตุลาคม 2011, 01:30:01
$response = xmlrpc_decode($file);

OR

http://framework.zend.com/manual/en/zend.xmlrpc.client.html