<?php
/**
 * This file is part of MythWeb, a php-based interface for MythTV.
 * See http://www.mythtv.org/ for details.
 *
 * @url         $URL: http://svn.mythtv.org/svn/tags/release-0-24/mythplugins/mythweb/includes/php_version_check.php $
 * @date        $Date: 2010-08-23 20:10:24 -0700 (Mon, 23 Aug 2010) $
 * @version     $Revision: 25821 $
 * @author      $Author: kormoc $
 * @license     GPL
 *
 * @package     MythWeb
 *
/**/
    define('PHP_MIN_VERSION', floatval(5.3));

// Make sure we're running a new enough version of php
    if (floatval(substr(phpversion(), 0, 3)) < PHP_MIN_VERSION)
        trigger_error('You must be running at least php '.PHP_MIN_VERSION.' to use this program.', FATAL);

    if (   !extension_loaded('mysql')
        && !extension_loaded('mysqli')
        && !extension_loaded('mysqlnd'))
        trigger_error('You are missing a php extension for mysql interaction. Please install php-mysqli or similar', FATAL);
