can anyone give me suggestions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rajavel
Forum Newbie
Posts: 3
Joined: Fri Jul 30, 2004 12:33 am

can anyone give me suggestions

Post by rajavel »

Can anyone help me in this issue

1) I have client machines having only monitors
2) cookies and sessions must not be used
3) I am having pages with dynamic contents
4) it will differ according to the language
5) i am going to fetch all the values from the database according to the language
6) i am using swf files to display the content

what i want now is
1) fetch the values once by getting the language from the user
2) maintain it as an object
3) take the values from the object and display it in the page dynamically

give me some ideas for doing this

swf files are taking time to load. so i want to minimize the database fetch
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

have the swf file store all the data needed internally, if you want to minimize the traffic to and from the database server. this will increase the memory requirements of the swf player. Or for less memory, only store maybe the surrounding pages data in the swf, or the data needed to get to that point in the site structure.
rajavel
Forum Newbie
Posts: 3
Joined: Fri Jul 30, 2004 12:33 am

thanks for ur reply

Post by rajavel »

i am fetching the data from the mysql for displaying the caption of buttons in flash. is it better to store the whole data (for all the pages) or for each page....If it is so how can i store? in sessions or static variables or something else
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you should be able to store it all inside flash itself I believe. Storing all the pages will use more memory on the thin client/kiosk, but make it far more responsive. If the database server is on a LAN or other highspeed connection within the same network, you can easily get away with only getting for the current page unless you expect hundreds of clients and lots of data being transfered...
rajavel
Forum Newbie
Posts: 3
Joined: Fri Jul 30, 2004 12:33 am

Post by rajavel »

Hi Feyd,

Thanks man. I 2 think ...storing the values for each page is better.....But to make it more responsive when they cum back again.. shall i store in a static variable or sessions.....whic will be more useful...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you stated above that sessions aren't allowed, so it'd have to be static..
Post Reply