PDA

View Full Version : WebGL + PHP



muntahu
07-21-2011, 07:24 AM
Hi everyone..I've never used webGL, and just wanna get started using it..
I've ever used openGL and made some websites with PHP..

I'm wondering, is it possible to combine webGL with PHP?
the purpose is simply to retrieve data from the webGL apps, and PHP will only be used for storing those data..
I hope anyone can help me..If it is possible, I plan to do webGL as my final project in my school..
Thank you^^

SteveBaker
07-21-2011, 07:57 AM
PHP runs on the server side of things - and emits files that are then sent to the client/browser.

WebGL runs inside the client/browser - called from JavaScript.

So, you can of course emit WebGL/JavaScript source code from within a PHP program running on the server - but you aren't making direct calls to WebGL from within PHP.