PHP Classes

File: light_example_list_xml.php

Recommend this page to a friend!
  Classes of Lee J   Lite User Agents API   light_example_list_xml.php   Download  
File: light_example_list_xml.php
Role: Example script
Content type: text/plain
Description: example list from xml
Class: Lite User Agents API
Get user agents information into XML or database
Author: By
Last change:
Date: 13 years ago
Size: 510 bytes
 

Contents

Class file image Download
<?php
    define
('IN_FCMS', true);
   
session_start();
    include
'class.Lite_user-agents.org.php';
   
$rbt = new User_Agents_dot_org();
   
$rbt->XML_enabled = true;
   
$rbt->Display_Agents('XML','', '');
    echo
'<h2><font color="red">'.sizeof($rbt->Nice_List).'</font> Results </h2>';
foreach (
$rbt->Nice_List as $i => $k){
   
// print out each type.
   
echo '['.$i.'] - '.$k['id'].' - '.$k['string'].' - '.$k['description'].' - '.$k['type'].' - '.$k['comment'].' - '.$k['link'].' - '.$k['link2'].'<br />';
    }
   
?>