Advertisement
Guest User

Untitled

a guest
May 26th, 2014
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2.         $xslDoc = new DOMDocument();
  3.         $xslDoc->load('./users.xsl');
  4.         $xmlDoc = new DOMDocument();
  5.         $xmlDoc->load("http://192.168.1.200:8083/stat");
  6.         $proc = new XSLTProcessor();
  7.         $proc->importStylesheet($xslDoc);
  8.         $proc->setParameter('', 'app', 'live');
  9.         $proc->setParameter('', 'name', $_GET['name']);
  10.         echo $proc->transformToXML($xmlDoc);
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement