hi im trying to make a very simple multiplayer enviornment.
i figured that i need a dedicated Socket server for this.
while i was trying to figure out how to set up a socket server, i found out it will be difficult for me to afford the server for a little application im trying to build.
so i decided not to use socket server for this manner.
instead, i plan to create a php script that runs on enterframe event that checks for any changes made in the database.
then, when the change captures, display the changes to all the clients.
in this way, i was able to create a chatting application and is working fine.
but problem is, i need the database to be deleted(delete script run) when a user disconnects or close up the application. and i cant figure out how i would do this without using a socket server.
can anyone share ideas? thank you.