Home Downloads Tera-WURFL Explorer Forums Submit User Agent

Configuration File

From Tera-WURFL

Jump to: navigation, search

These are the Tera-WURFL Configuration Options available in TeraWurflConfig.php.

Database Options

  • DB_HOST: database server hostname or IP
    examples: "localhost", "db001.yourserver.com", "192.168.0.1", "SQLEXPRESS\wurflinstance"
  • DB_USER: database username. Make sure your database has the correct permissions: examples: "wurfluser", "MYDOMAIN\wurfluser"
    • MySQL 4: SELECT,INSERT,DELETE,DROP,CREATE
    • MySQL 5: SELECT,INSERT,DELETE,DROP,CREATE,EXECUTE,DROP ROUTINE,CREATE ROUTINE
    • MSSQL 2005: SELECT,INSERT,DELETE,DROP,CREATE,EXECUTE,DROP PROCEDURE,CREATE PROCEDURE
  • DB_PASS: database password for the user above
  • DB_SCHEMA: database name
  • DB_CONNECTOR: the DatabaseConnector you would like to use to connect to your database. Here's the available options:
    • MySQL4
    • MySQL5
    • MSSQL2005 (EXPERIMENTAL)
  • DEVICES: database table name prefix for the WURFL device tables
  • CACHE: database table name for the cache
  • INDEX: database table name for the Index of the WURFL IDs and UserAgentMatchers
  • MERGE: database table name for the combined UserAgentMatcher tables

General Options

  • WURFL_DL_URL: full URL to the current WURFL.xml file
  • WURFL_CVS_URL: full URL to development (CVS) WURFL file (disabled in version 2.0.0)
  • DATADIR: where all data is stored (wurfl.xml, temp files, logs)
  • CACHE_ENABLE: enables or disables the cache
  • PATCH_ENABLE: enables or disables the patch files. After disabling this option you must reload the WURFL file!
  • PATCH_FILE: optional patchs file for WURFL. To use more than one, separate them with semicolons
  • WURFL_FILE: path and filename of the WURFL device file from http://wurfl.sourceforge.net (normally wurfl.xml)
  • WURFL_LOG_FILE: full path and filename for the log file
  • LOG_LEVEL: desired logging level. Use the same constants as for PHP logging. Only the following log levels are used in Tera-WURFL:
    • LOG_NOTICE
    • LOG_WARNING
    • LOG_ERR
  • OVERRIDE_MEMORY_LIMIT: set to true to override PHP's default memory limit
  • MEMORY_LIMIT: the amount of memory to allocate to PHP if OVERRIDE_MEMORY_LIMIT is enabled
  • SIMPLE_DESKTOP_ENGINE_ENABLE: enable the SimpleDesktop Matching Engine to increase performance
  • CAPABILITY_FILTER: the capability filter that is used to determine which capabilities are available

You can look through the available WURFL capabilities of any device using the Tera-WURFL Explorer.

Personal tools