getRealPath(); // sanitize directory separator $form_class_path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $form_class_path); $real_root_path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $real_root_path); $plugins_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/' . ltrim(str_replace(array($real_root_path, DIRECTORY_SEPARATOR), array('', '/'), $plugins_path), '/'); $current_dir = str_replace(basename(__FILE__), '', $_SERVER['SCRIPT_NAME']); $phpformbuilder_include_code = 'include_once rtrim($_SERVER[\'DOCUMENT_ROOT\'], DIRECTORY_SEPARATOR) . \'' . $current_dir . 'Form.php\';'; } ?>
Your PHP Version is
The correct include statement to include Form.php is the following:
You have to replace the following code:
include_once rtrim($_SERVER['DOCUMENT_ROOT'], DIRECTORY_SEPARATOR) . '/phpformbuilder/Form.php';
in your forms - the template files or your own forms php files - with the correct include statement shown above.
This is the default path used in all templates. You've got nothing to change.
To allow access and display information, open this file in your code editor and replace false with true Line 15.