php script return specific xml tag value

Posted by Alaa on Stack Overflow See other posts from Stack Overflow or by Alaa
Published on 2010-05-12T00:44:20Z Indexed on 2010/05/12 1:14 UTC
Read the original article Hit count: 313

Filed under:
|

i need php script to extract the ip address from the following xml page www.ip-address.com/test.xml

<dnstools>
<service_provider>Domain Tools</service_provider>
<provider_url>http://www.domaintools.com/</provider_url>
<date>Wed, 12 May 2010 00:43:07 GMT</date>
<unix_time>1273624987</unix_time>
<ip_address>94.252.157.241</ip_address>
<hostname>94.252.157.241</hostname>
<blacklist_status>Clear</blacklist_status>
<remote_port>43577</remote_port>
<protocol>HTTP/1.0</protocol>
<connection>keep-alive</connection>
<keep_alive/>

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml