View Full Version : Active User Count
imadesigner
11-04-2003, 09:42 AM
i have found the following script that shows how many people are currently on a webpage:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=704&lngWId=8
and was wondering how this could be integrated so that the number appeared in my Flash movie when it was loaded.... any ideas?
CyanBlue
11-04-2003, 10:15 AM
Howdy... ;)
I do not quite understand your question, but I assume that you want to call that script and then get the value back into the Flash so that you can display it into the dynamic text field, right???
I am sure you know how to use loadVariables() function or LoadVars() object... If you don't go check out the tutorial section to get more information on it...
Just change this line...echo $counter;into this one...echo "counter=$counter";Now, the Flash can get the value of 'counter' within itself... So, you've got your answer right there... ;)
Dumb question... :D
Anybody who's seen this script... See this line...if ($data[1] = $REMOTE_ADDR) {Why is there only one '=' in that if statement??? Can I use '=' in PHP instead of '=='??? :confused:
Motion2082
11-04-2003, 01:35 PM
I think your having the same problem I did last week
see < http://www.actionscript.org/forums/showthread.php3?s=&threadid=36885 >
there is a working counter.php script there, take notice of the scripting as it is not too hard to work out what exactly is going on...hope this helps
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.