Hello,
I was wondering how I could reload a div when ever a XML file changes it's content (Shoutcast)
So I don't have to have a reload every x seconds just update it when the song changes.
He said he didn't want it to reload after x amount of seconds...You must be registered for see links
He wants to reload a div whenever an XML file changes its content, not just every 'x' seconds.He said he didn't want it to reload after x amount of seconds...
Sadly that's the only way no matter how you do it. Hell, making a custom desktop application would still mean you'd have to poll it every x amount of seconds.He said he didn't want it to reload after x amount of seconds...
Nope, aren't you a Linux SysAdmin? And you're unfamiliar with the command "tail"?He wants to reload a div whenever an XML file changes its content, not just every 'x' seconds.
It is going to have to be scripted so that it checks every 'x' seconds. He will need to store the current XML data in one variable prior to the check, and then again in another variable after the check. He can then compare the XML data to see if it has been changed and reload the div accordingly.
No, you wouldn't have to poll if you used a desktop application because his OS has functions that can establish listeners that call back to a function after a certain file is updated.Sadly that's the only way no matter how you do it. Hell, making a custom desktop application would still mean you'd have to poll it every x amount of seconds.
Never heard of trail. Think you mean tail:Nope, aren't you a Linux SysAdmin? And you're unfamiliar with the command "trail"?
No, you wouldn't have to poll if you used a desktop application because his OS has functions that can establish listeners that call back to a function after a certain file is updated.
ONT:
PHP inotify is exactly what you're looking for.
You must be registered for see links
root@autobots [~]# touch jadenisanidiot && echo 'dumbass' >> jadenisanidiot
root@autobots [~]# screen
[detached]
root@autobots [~]# sed -i 's/dumbass/retard/' jadenisanidiot
root@autobots [~]# cat jadenisanidiot
retard
root@autobots [~]# screen -r
root@autobots [~]# tail -f jadenisanidiot
dumbass
Are you just pretending to be stupid?Nope, aren't you a Linux SysAdmin? And you're unfamiliar with the command "tail"?
No, you wouldn't have to poll if you used a desktop application because his OS has functions that can establish listeners that call back to a function after a certain file is updated.
ONT:
PHP inotify is exactly what you're looking for.
You must be registered for see links
Is he not spoon-feeding you enough ;(Can you make a piece of code for me please? @eckostylez
Actually, he's right. They helped you to figure it out for yourself. If you want to be spoon-fed (as you literally are asking to do, you haven't even tried yourself, you just asked for code) post a thread here:GTFO off my thread if you ain't got nothing to share/give that is positive or helpful give the fuck off my thread.
Actually, he's right. They helped you to figure it out for yourself. If you want to be spoon-fed (as you literally are asking to do, you haven't even tried yourself, you just asked for code) post a thread here:You must be registered for see links
So yeah, fuck off yourself m8.