- Joined
- 26.12.23
- Messages
- 244
- Reaction score
- 8,010
- Points
- 93
You're probably not running it in a PHP server and merely hosting it as a static HTML. Use php to serve it. The reason it's resulting in a 'not valid JSON' is because it's receiving the .php as an HTML and not as PHP.After some time trying to set this up I've ran into 2 issues.
I believe there is an error at the end of the written php code. It ends with