PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 21st, 2002, 06:43 PM
Flash Flash is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sint-truiden, Belgium
Posts: 2 Flash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old May 24th, 2002, 04:57 AM
Smiley Smiley is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Australia
Posts: 30 Smiley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > file traffic in client direction


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway