Add these line below to enable PHP file into
/intranet/common/config.php
// Flag showing if we allow inserting PHP code in publish fields // But even if it's allowed, it'll work only on external pages unless $cfg_execute_PHP_in_publish is set to true $cfg_allow_PHP_in_publish = true; // Flag showing if we allow executing PHP code in publish fields when showing // page in Claromentis (not external) $cfg_execute_PHP_in_publish = true;
Add this line below to
/intranet/publish/fckconfig_publish_custom.js
If you don’t have this file on your system you need to create one.
FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code
Also read
* What is Config File
Discussion