Open Arjan-Oskam opened 9 years ago
This project is no longer actively worked on. It's supported by community members and updated from there.
I understand but... how am I able to make this work without the "Fatal Error"? Is it because it isn't supposed to be opened with Xampp or Usbwebserver? Or is the code failiing?
That function in declared in other files, e.g. samples/ajax.php
function file2json($file) {
$data = file_get_contents($file);
return(json_decode($data, TRUE));
}
Just paste that in samples/demo.php
I seem to get an error only when opening demo.php in xampp: "Fatal error: Call to undefined function file2json() in C:\xampp\htdocs\Provisioner-master\samples\demo.php on line 2"
Am I missing something? Or am I doing sometihing completely wrong??