- Thread starter
- #1
Im getting this error when i go to my website, and on my vps i have
PHP 8.3.12
PHP 8.3.12
Code:
<?php
use XF\Api\App as ApiApp;
use XF\Pub\App as PubApp;
$phpVersion = phpversion();
if (version_compare($phpVersion, '7.2.0', '<'))
{
die("PHP 7.2.0 or newer is required. $phpVersion does not meet this requirement. Please ask your host to upgrade PHP.");
}
$dir = __DIR__;
require $dir . '/src/XF.php';
\XF::start($dir);
if (\XF::requestUrlMatchesApi())
{
\XF::runApp(ApiApp::class);
}
else
{
\XF::runApp(PubApp::class);
}