write files by PHP?

I’m testing on Oculus Quest 2 a small WebXR spline patch editor at VR NURBS + THREEjs and like to read/write JSON data (a few kb). Unfortunately, my simple test at Send JSON test doesn’t work. Can I open a directory for writing or shall I use OpenSQL?

Hello - I’m not sure what you’re asking here - can you provide more detail, including any error messages you are seeing.

Hello Sara. Set e.g. “1” “1” at Send JSON test and press “TestJSON”. I get in JS console
POST https://www.ibiblio.org/e-notes/webxr/json/json.php 500 (Internal Server Error)
As I understand json.php can’t write files to the server? (sorry for cyrillic/greek comments :slight_smile:

I made some changes to the permissions of that directory - let me know if that works.

I still have “500 (Internal Server Error)”.
I think I have to learn PHP (or WordPress) more accurately.

It looks like you have a syntax error in line 16 of that file.

“It looks like you have a syntax error in line 16 of that file.”
yes, I’ve corrected that.
Maybe to write files by PHP we need to add ($_SERVER[‘USER’])
to the group users (somewhere)?

That change has been made - let us know if it’s working now.

Thank You. Now it works as expected.

1 Like