Open the 4images html template where you would like to include your PHP file and include it like this:
<?php
include($_SERVER['DOCUMENT_ROOT']."/relative/path/to/my/include.php");
?>
Next, open includes/constants.php and change
// Allow execution of PHP code in templates
define('EXEC_PHP_CODE', 0);
to this
// Allow execution of PHP code in templates
define('EXEC_PHP_CODE', 1);
PLEASE be sure to read this FAQ forum topic:
http://www.4homepages.de/forum/index.php?topic=3378for information regarding some limitations and possible solutions for working with certain types of PHP scripts.
[UPDATE]
If you are using relative path ./ inbetween the templates, then be advised, that php will look for files in
includes/ directory and not 4images root!
i.e. if used
<?php
include("./somephpfile.php");
?>
the
somephpfile.php must be placed in
includes/ folder.