Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lee J  >  Lite User Agents API  >  index.php  >  Download  
File: index.php
Role: Documentation
Content type: text/plain
Description: Main documention
Class: Lite User Agents API
Get user agents information into XML or database
Author: By
Last change: been changed to support a list of links to examples
Date: 3 years ago
Size: 6,312 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>User Agents Light API php class examples</title>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-3656530-20']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>

<body>

<h1>PHP Lite user-agents.org API features, syntax &amp; examples</h1>
<p>This class was originally released by Lee Johnstone in 2008 and is still maintained to current date.</p>
<p>This class is the light weight version of what I have set the API on. <br>
  The Class basicaily is a xml parser to sql, html, or ur own xml.<br>
It can access <a href="http://user-agents.org/">http://user-agents.org</a> the allgents.xml that contains identification of all known browsers and robot's store's them in your own XML file or MySQL database.</p>
<p>From this you can call the local or even remote database and do checks against it or list single or match's types.</p>
<p>Table of contents</p>
<p><a href="#sql_f">sql features</a><br>
  <a href="#xml_f">xml features</a><br>
  <a href="#csv_f">csv features</a><br>
  <a href="#raw_f">raw features</a><br>
<a href="#types_l">types legends</a><br>
<a href="#notes_l">notes legends</a><br>
<a href="#uri_syntax">uri syntax</a><br>
<a href="#examples">Examples</a>
<a href="#support"><br>
Support and help</a>
</p>
<p>#################################################################<br>
  ####################### <a name="sql_f"></a>sql features ############################<br>
  #################################################################<br>
  #<br>
  #	-raw 2 sql					~ *<br>
  #	-display all					*<br>
  #	-minor match display by alpha, exact, db id. 	*<br>
  #<br>
  #################################################################<br>
  ####################### <a name="xml_f"></a>xml features ############################<br>
  #################################################################<br>
  #<br>
  #	-raw to xml					~ ^<br>
  #	-display all					^<br>
  #<br>
  #################################################################<br>
  ####################### <a name="csv_f"></a>csv features ############################<br>
  #################################################################<br>
  #<br>
  #	-sql 2 csv 					*<br>
  #	-xml 2 csv 					^<br>
  #	-display all <br>
  #<br>
  #################################################################<br>
  ####################### <a name="raw_f"></a>raw features ############################					~<br>
  #################################################################<br>
  #<br>
  #	-raw 2 sql 					~ *<br>
  #	-raw to xml 					~ ^<br>
  #	-display all raw via storage array. 		~<br>
  #<br>
  #################################################################<br>
  ####################### <a name="notes_l"></a>NOTES Legend ############################<br>
  #################################################################<br>
  #<br>
  #	* only if sql enabled<br>
  #	^ only if XML enabled<br>
  #	~ only if RAW enabled<br>
  #<br>
  #	RAW must be enabled to get from user-agents.org<br>
  #	SQL or XML must be enabled to get from user-agents.org<br>
  #	CSV can only be created from your local DB<br>
  #<br>
  #################################################################<br>
  ####################### <a name="types_l"></a>TYPES LEGEND ############################<br>
  #################################################################<br>
  #	B = Browser <br>
  #	C = Link, bookmark, server checking<br>
  #	D = Downloading tool<br>
  #	P = Proxy server, web filtering<br>
  #	R = Robot, crawler, spider<br>
  #	S = Spam or bad bot<br>
  #################################################################<br>
  ######################### <a name="uri_syntax"></a>URI Syntax ############################<br>
  #################################################################<br>
  #	somepage.php?save=XML<br>
  #	somepage.php?save=SQL<br>
  #	somepage.php?save=CSV&amp;from=XML<br>
  #	somepage.php?save=CSV&amp;from=SQL<br>
  #<br>
  #	somepage.php?display=CSV<br>
  #	somepage.php?display=RAW<br>
  #	somepage.php?display=SQL<br>
  #	somepage.php?display=SQL&amp;type=sometype<br>
  #	somepage.php?display=SQL&amp;alpha&amp;type=a<br>
  #<br>
  #################################################################
</p>
<h1 ><a name="examples"></a>Examples </h1>
<h3 >List Examples</h3>
<p ><em>RAW XML from user-agents.org </em><strong><em>> </em></strong><a href="light_example_list_raw.php"> RAW Example</a><br>
  <em>Local XML if XML is Enabled </em><strong><em>> </em></strong><a href="light_example_list_xml.php">XML Example </a><br>
  <em>Local SQL if SQL is Enabled</em><strong><em> > </em></strong><a href="light_example_list_sql.php">SQL Example</a><br>
  <em>Local CSV if its been Created</em><strong><em> > </em></strong><a href="light_example_list_csv.php"> CSV Example</a><br>
</p>
<h3 >Save Examples</h3>
<p ><em>Save to local XML From RAW </em><strong><em>> </em></strong><a href="light_example_save_xml.php"> XML</a><br>
  <em>Save to local SQL From RAW </em><strong><em>> </em></strong><a href="light_example_save_sql.php">SQL</a><br>
  <em>Save local CSV From XML</em><strong><em> > </em></strong><a href="light_example_save_csv_xml.php">CSV from XML</a><br>
  <em>Save local CSV From SQL</em><strong><em> > </em></strong><a href="light_example_save_csv_sql.php">CSV from SQL</a><br>
</p>
<h1> <a name="support"></a>Support</h1>
<p ><a href="http://user-agents.freakcms.com/index.php">user-agents.freakcms.com</a></p>
<footer>
<p><a href="#top">Top</a><br>
      <br>
    &copy; freakcms.com 2007-2011</p>
    <p><time>Page Updated April 2, 2011 5:44 AM<MM:EndLock></time></p>
    <address>
    <a href="http://freakcms.com">freakcms.com</a>
    </address>
</footer></body>
</html>