Unfortuantly I'm not using MySQL but its a nice idea and I think ill do a variation on that ;)
Printable View
Unfortuantly I'm not using MySQL but its a nice idea and I think ill do a variation on that ;)
XML files well...Plists, which are essentially XML files.
./online/username.txt
inside file, timestamp of last refresh basically
to check, open username.txt, check against time() with the timestamp recorded, and wala. You have jewbears thingy, its easy... really.
Ok, I'm really confused.
So I have all of these files in www.URL.com/<yourusername>/<yourusername>.plist
If <yourusername>.plist hasn't been updated in 12 seconds then I want to POST <yourusername> to removeUser.php. How would I go about doing this?
There are many users that I'd have to do it for so I'm not sure how to do it in cron jobs.
I'm wondering the same thing.. it's just going to be a lot of lag time and overhead if many users start to use it.
You can setup "virtual" plist files, and return the database results in XML format, if you're so dedicated to using XML, but still having the functionality, speed, and versatility of a database behind it..
I think that'd be a whole lot better solution.