XML_XRD
[ class tree: XML_XRD ] [ index: XML_XRD ] [ all elements ]

Source for file gen-host-meta.php

Documentation is available at gen-host-meta.php

  1. <?php
  2. /**
  3.  * Generates a .well-known/host-meta file that's described
  4.  * in "RFC 6415: Web Host Metadata".
  5.  *
  6.  * @author Christian Weiske <cweiske@php.net>
  7.  * @link   http://tools.ietf.org/html/rfc6415
  8.  */
  9. require_once 'XML/XRD.php';
  10. $x = new XML_XRD();
  11.  
  12. $x->subject = 'example.org';
  13. $x->aliases['example.com';
  14. $x->links[= new XML_XRD_Element_Link(
  15.     'lrdd''http://example.org/gen-lrdd.php?a={uri}',
  16.     'application/xrd+xml'true
  17. );
  18.  
  19. echo $x->toXML();
  20. ?>

Documentation generated on Mon, 11 Mar 2019 15:57:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.