Login   Register  
PHP Classes
elePHPant
Icontem

File: sample5.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QXML  >  sample5.php  >  Download  
File: sample5.php
Role: Sample output
Content type: text/plain
Description: IP-Info to XML
Class: QXML
XML <> Array (preserve attrib.), JSON, etc.
Author: By
Last change:
Date: 6 years ago
Size: 296 bytes
 

Contents

Class file image Download
<?php

include_once("QXml.class.php");
include_once("QWhoIsIp.class.php");

$array = array("213.217.37.242", "83.98.158.11", "12.0.0.0");

$whois = new QWhoIsIP($array);

$xml = new QXML;
$xml->toXML($whois->getResult());

header("content-type:text/xml");

echo $xml->asXML();

?>