Start PHP from main script for selenium tests
[phpmyadmin.git] / version_check.php
blobfda43ad2f0151279a6228f20d7f2f4ce3e2b01c0
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * A caching proxy for retrieving version information from phpmyadmin.net
6 * @package PhpMyAdmin
7 */
9 // Sets up the session
10 define('PMA_MINIMUM_COMMON', true);
11 require_once 'libraries/common.inc.php';
12 require_once 'libraries/Util.class.php';
14 // Always send the correct headers
15 header('Content-type: application/json; charset=UTF-8');
17 $version = PMA_Util::getLatestVersion();
19 echo json_encode(
20 array(
21 'version' => $version->version,
22 'date' => $version->date,