We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18399
    • 60 Posts
    Think I’ve solved my problems.

    <?php
    $path1 = $modx->config[’base_path’];
    $array = explode(’, ’,$options);

    foreach ($array as $values) {
    $path2 = $values;
    $path = $path1 . $path2;
    if (is_file($path)) {
    include($path);
    }
    }

    return;
    ?>

    is_file seems a rather nice way of detecting possible problems with the target file.

    Thanks for the help.

    Mark