What is the limitation in the CMS that prevents direct inclusion of PHP scripts?

The limitation in the CMS that prevents direct inclusion of PHP scripts is a security measure to prevent potential vulnerabilities such as code injection or execution of malicious scripts. To work around this limitation, you can create a custom PHP file that includes the necessary functionality and then include this file in your CMS template or theme.

// custom-script.php
<?php
// Your PHP code here
?>

// In your CMS template or theme file
include 'path/to/custom-script.php';