Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo.php doesn't work? #188

Open
Arjan-Oskam opened this issue Feb 11, 2015 · 3 comments
Open

Demo.php doesn't work? #188

Arjan-Oskam opened this issue Feb 11, 2015 · 3 comments

Comments

@Arjan-Oskam
Copy link

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
Copy link
Contributor

tm1000 commented Feb 11, 2015

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

@Arjan-Oskam
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants