Jump to content

multiple users viewing dynamic slideshow


beermaker74

Recommended Posts

ok I  have an odd question here
I will have a page that has a dynamic flash slideshow fed by an xml file. The page will have a search feature. So when somebody does a search. I will make an xml file on the fly with php of the results of their search. The flash slideshow will be embedded with swfobject and the xml file will be assigned dynamically to a mysql variable. So if 20 people at the same time are trying to view the page is this going to cause problems. since each search will be different and the xml will be assigned a  different variable.  The xml file variable could have different names if need be. I hope I am explaining this right.

the page name will be something like slideshow search. I am not sure if I am going to send them to another page to display results. IF that is easier then I am all for it. The main goal I have is to let the user customize a slideshow. say they wanted to see only wolves or birds and wolves. Is this possible
thanks
Link to comment
https://forums.phpfreaks.com/topic/36265-multiple-users-viewing-dynamic-slideshow/
Share on other sites

do you mean to set a session var when the user hits the index page? Let me see if I can work through this. I set session_start() on my index page. When a user visits my home page they will be assigned a random ssid. So if they goto my slideshow search page I could name the xml file variable the same as their ssid. i see that. but if 2 or more people are on slideshow search page and trying to view the flash app. will it cause a conflict? even though the xml file name will be unique the flash app is coming fromthe same location on the server. AM I explaining this right? let me explain further. here is the embed code for the flash player
[code]<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong></div>
                <script type="text/javascript">
// <![CDATA[

var so = new SWFObject("customslideshow.swf", "ssp", "550", "400", "7", "#FFFF99");
so.addVariable("xmlfile", "<?php echo $usersearch; ?>");
so.write("flashcontent");

// ]]>
</script>[/code]
$usersearch will be created on the fly. So if 2 people are trying to view a slideshow am i goiing to have a problem?
sorry for the convoluted question.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.