provisioner / Provisioner

The is the central location for the Provisioner Module for VoIP/PBX Servers. Most of the new work is happening inside the v5-dev branch
Other
120 stars 154 forks source link

Demo.php doesn't work? #188

Open Arjan-Oskam opened 9 years ago

Arjan-Oskam commented 9 years ago

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??

tm1000 commented 9 years ago

This project is no longer actively worked on. It's supported by community members and updated from there.

Arjan-Oskam commented 9 years ago

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?

nunovieira commented 9 years ago

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