SG1 Posted May 7, 2007 Share Posted May 7, 2007 I'm pretty new in php and I need some help from you pro's out there :-) To give you a good picture of what i want to do i will try to explain what it is for too. I am playing a game where there are some mobs spawning every now and then. These are displayed by js on all the pages in the game in their "toolbar" where you also get all other info relevant to your character, by mouseover... i figure you have already guessed this a password protected site. So i now want to make a script that logs on from another domain get the mobs and if there are changes a pop up notifies you there is a new mob spawned. So here is what I THINK I need to do 1. Access the site 2. Search the site through the page home.php for the names of these mobs. ( guess a new search about every 30 sec) 3. If there are anyone that has spawned since the last search make an alert. Problem is i have no idea of how to do this and i figure it all won't be done with php alone... don't expect you guys to make a script for me, but to show me the ropes so i can find out how to do this. :-) Thanks alot everyone Quote Link to comment Share on other sites More sharing options...
paul2463 Posted May 7, 2007 Share Posted May 7, 2007 if all the searching about the mobs is being done "Client Side", ie the page has already loaded on the clients computer, then PHP will be no use to you, unless you send the page away every 30 seconds and bring it back for PHP to check for you, because PHP is parsed and executed before it is sent to the clients computer. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.