Advertisement
Guest User

Missing PHP Manual INI links

a guest
May 19th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2. $document = new DOMDocument();
  3. $document->load('.manual.xml');
  4.  
  5. function ini_link($ini) {
  6.  foreach ($ini->getElementsByTagName('row') as $row) {
  7.   $name = $row->getElementsByTagName('entry')->item(0);
  8.   if (!$name->getElementsByTagName('link')->length) {
  9.    if ($ini->ownerDocument->getElementById('ini.' . str_replace('_', '-', $name->nodeValue))) {
  10.     echo "$name->nodeValue\n";
  11.    }
  12.   }
  13.  }
  14. }
  15.  
  16. ini_link($document->getElementById('ini.list'));
  17.  
  18. foreach ($document->getElementsByTagName('section') as $section) {
  19.  if (preg_match('/\.configuration/', $section->getAttribute('xml:id'))) {
  20.   ini_link($section);
  21.  }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement