[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.API 5 * 6 * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 // NOTE: This file should remain compatible with PHP 5.2 to allow us to run our PHP minimum check and show a friendly error message 11 12 // Define the application's minimum supported PHP version as a constant so it can be referenced within the application. 13 define('JOOMLA_MINIMUM_PHP', '7.2.5'); 14 15 if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) { 16 header('HTTP/1.1 500 Internal Server Error'); 17 echo json_encode( 18 array('error' => sprintf('Joomla requires PHP version %s to run', JOOMLA_MINIMUM_PHP)) 19 ); 20 21 return; 22 } 23 24 /** 25 * Constant that is checked in included files to prevent direct access. 26 * define() is used rather than "const" to not cause an error for PHP 5.2 and lower 27 */ 28 define('_JEXEC', 1); 29 30 // Run the application - All executable code should be triggered through this file 31 require_once dirname(__FILE__) . '/includes/app.php';
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |