 |
|
 |
Main Menu |
|
 |
Forums |
|
 |
Programming Contest |
|
 |
Documentation
|
|
 |
Partner
Sites |
|
 |
Sponsors |
|
 |
|
|
Register •
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 1 post ] |
|
Author |
Message |
tamat
Junior Member
Joined: Mon Jan 09, 2006 1:18 pm Posts: 1
|
Hi People:
I have been programming crappy C++ games for years and now I want to try to create my own php strategy game but I'm having problems with the code organization.
The main problem is how to deal with the OOP using PHP. I know everything about the sintax but I dont know how to organize the source, ¿which is the best way to instantiate diferent objects to avoid making the same querys to the database on every user action?.
I know how to use sessions but is it a great idea to store the objects in the session? Can I create static instances that shares the content between users? or I need to use the DB?
And what about the concurrency? If I store lots of data on the user session then If another user makes something maybe the user session gets deprecated and I need to update it just querying the DB, how to deal with that? maybe a events pool?
Any suggestion will be apreciated.
|
Mon Jan 09, 2006 1:29 pm |
|
 |
|
|
Page 1 of 1
|
[ 1 post ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|
|