persistant php script?

  • Thread starter Thread starter ideadude
  • Start date Start date
I

ideadude

Guest
You should give more information about what you are trying to do.

If I was trying to serve "updates" to a Flash client, I would have a PHP script getupdates.php that queried the database and returned any "new" updates. You could then call this script every X minutes or seconds to check for updates.

When you serve an update, check it off in the DB somehow so it doesn't get served again. Or have your Flash client handle dupes.

If you had multiple clients/connections/users, you would have to update your script to take that value in (and possibly add some security to keep users from getting other users updates)... so call getupdates.php?client=1.

Does this help?
 
I have am making a php script to maintain persistant conections with flash clients to serve updates to them.

but I host with nearlyfreespeach.net, wont the script have a timeout?
poling seems a crap way to serve updates to flash, when php can make connections and so can flash. if I can keep the script running it can send updates when needed, and not have to keep checking.

will have many clients, and need to send updates intermittently.
 
Back
Top