Flash Video + PHP Script

I was wondering is anyone had a php script, (1) that could take a link to a flv on an html page, and (2) load that flv file into flowplayer using a jqueryui popup dialogue. I do not know any php, so I am looking for a constructed script. I want it like this so I will not have to code 10 lines for every flv file I want to embed. A user would just click a link on the page, and the flv video would play in flowplayer. Any suggestions?