x_ite icon indicating copy to clipboard operation
x_ite copied to clipboard

file php

Open binoclard2005 opened this issue 11 months ago • 8 comments

Hello

I only use the php file, for my vrml2 worlds, because the computer generates the world, with data on the server. Is it possible to create an option to extend support with php files?

php, wrl, wrz, x3d and all supported formats :) ^^

Thank you very much if this is possible :) ^^

if that's not possible, remember to leave me a little message ;) ^^

THANKS

Marco

binoclard2005 avatar Dec 31 '24 16:12 binoclard2005

You should be able to use a .php file as URL for the x3d-canvas element:

<x3d-canvas src="your-file.php"></x3d-canvas>

The main thing is that it sends a file format that X_ITE understands. X_ITE tries to automatically recognise the format from the content of the data and then passes the data to the corresponding parser.

create3000 avatar Dec 31 '24 17:12 create3000

You can of course also use the API to load a file, e.g. Browser.loadURL .php files should also work there.

create3000 avatar Dec 31 '24 17:12 create3000

ok, so if I create a scene like web page --> x_ite --> inline --> php file, that ok?

binoclard2005 avatar Dec 31 '24 17:12 binoclard2005

This should be very well possible and in all places where you can enter a URL.

create3000 avatar Dec 31 '24 17:12 create3000

and this ? web page --> x_ite --> inline --> 'scene.php?name=marco&lvl=10' , that ok? scene.php generate, the file only for marco and, lvl 10 of xp ?

binoclard2005 avatar Dec 31 '24 17:12 binoclard2005

It's best if you try it out, if there are any problems I can try to help you.

create3000 avatar Dec 31 '24 17:12 create3000

in my first test, it is not possible, i remake a test in few weeks :) thank

binoclard2005 avatar Dec 31 '24 17:12 binoclard2005

There are various reasons why sometimes a scene cannot be loaded. In such a case it is good to have a look at the Developer Console of the browser, there are often messages that help or give a hint.

create3000 avatar Dec 31 '24 17:12 create3000