keep php script open to accect changing variables?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gabriak
Forum Newbie
Posts: 1
Joined: Fri Mar 17, 2006 7:10 pm

keep php script open to accect changing variables?

Post by gabriak »

i'm trying to write a frontend to mplayer using php.
i have a perl script that listens to mplayer for things like progress and track name.
it outputs the variables to a file such as mplayer_vars.php

I'd like to be able to have real time progress on the page without reloading every couple seconds in an iframe.
is there a way to have php output the webpage, but still stay open to call javascript functions, and refresh the variables?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

ajax.
Post Reply