|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
file traffic in client direction
Hello,
I have a design/php problem. I have a php server running(apache) and we're making a 3d application which we want to be run in a browser window, with ActiveX. So we have installed mysql on apache, in which our textures are stored. Now I need a good way to get the necessary files to the client, and from time to time, as the client walks trough our application, new parts of the 3d world will have to be sent to him. I have some basic knowledge of html and I know how to acces the DB using php and get the files I need, But I don't know how I'm going to get those files to the client and what would be the best way. I know this is not a very to-the-point question, but any hints or help is appreciated. |
|
#2
|
|||
|
|||
|
RE: file traffic in client direction
Assuming that you get the hang of the db functions: http://www.php.net/mysql
In particular pay attention to mysql_query and mysql_fetch_array All you need to do it get the the data out of the database into a variable (using the above 2 functions) and here's the tricky bit. Assuming that your ActiveX can catch stuff being sent to it (via Winsock for example), you can just open a socket to it and pump the data down to it directly. The activeX should then be able to catch it and render it to the screen. Based on your broad question, I've made quite a few assumptions, if they are wrong, then by all means correct me, so I can steer you in the right direction. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > file traffic in client direction |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|