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

file php #184

Open
binoclard2005 opened this issue Dec 31, 2024 · 8 comments
Open

file php #184

binoclard2005 opened this issue Dec 31, 2024 · 8 comments
Labels
question Further information is requested

Comments

@binoclard2005
Copy link

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

@create3000
Copy link
Owner

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 create3000 added the question Further information is requested label Dec 31, 2024
@create3000
Copy link
Owner

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

@binoclard2005
Copy link
Author

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

@create3000
Copy link
Owner

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

@binoclard2005
Copy link
Author

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 ?

@create3000
Copy link
Owner

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

@binoclard2005
Copy link
Author

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

@create3000
Copy link
Owner

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.

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

No branches or pull requests

2 participants