Form Tools
Form Tools Core (3.0.0-alpha-20180410) library.php - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Form Tools 3 alpha (https://forums.formtools.org/forumdisplay.php?fid=21)
+--- Thread: Form Tools Core (3.0.0-alpha-20180410) library.php (/showthread.php?tid=30791)



Form Tools Core (3.0.0-alpha-20180410) library.php - keket - Apr 12th, 2018

Hello, there is problem with / and \ on Windows and XAMPP  PHPv 7.20 in path definition:

Quote:Warning: require_once(C:/xampp/htdocs 3/global/library.php): failed to open stream: No such file or directory in C:\xampp\htdocs\f3\modules\form_builder\published\build8.php on line 6

Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs 3/global/library.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\f3\modules\form_builder\published\build8.php on line 6

There is example create build8.php file. Check the 6th line. There is wrong definition of path:
PHP Code:
<?php

/**
 * This file was created by the Form Tools Form Builder module.
 */
require_once("C:\xampp\htdocs\f3/global/library.php");
use 
FormTools\Core;
Core::init(array("auto_logout" => false));
$root_dir Core::getRootDir();
$published_form_id 2;
$filename  "build8.php";
require_once(
"$root_dir/modules/form_builder/form.php");