file php
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
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.
You can of course also use the API to load a file, e.g. Browser.loadURL .php files should also work there.
ok, so if I create a scene like web page --> x_ite --> inline --> php file, that ok?
This should be very well possible and in all places where you can enter a URL.
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 ?
It's best if you try it out, if there are any problems I can try to help you.
in my first test, it is not possible, i remake a test in few weeks :) thank
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.