Login   Register  
PHP Classes
elePHPant
Icontem

File: light_example_list_csv.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lee Johnstone  >  Lite User Agents API  >  light_example_list_csv.php  >  Download  
File: light_example_list_csv.php
Role: Example script
Content type: text/plain
Description: example list from csv
Class: Lite User Agents API
Get user agents information into XML or database
Author: By
Last change:
Date: 2011-04-02 07:04
Size: 482 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->Display_Agents('CSV','''');
    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 />';
    }
    
?>