Jump to content

"Extracting and alerting"


SG1

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/50312-extracting-and-alerting/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.