Beginner to PHP

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
douga
Forum Newbie
Posts: 2
Joined: Wed Apr 24, 2002 5:54 am

Beginner to PHP

Post by douga »

:roll: I am very very new to PHP. I have a situation that I know can be resolved by PHP - I just have no idea how.

I have several Windows Media audio files that are going to be played in an embeded player in a pop-up window. The thing is - instead of having an html page for each audio file - can I have 1 html page with all the object embed info, and then when they click the link, that determines which file is played.

I'm sure it's not complicated. It's just launching the window, having some kind of "include" function where the filename goes and using PHP to tell it what the filename is.

If anyone can tell me how this could be done it would be greatly appreciated.

Thanks!
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post by enygma »

Just use Javascript to open the window, and give the window.open() function a path like "foo.php?file=blah.mpg" and then the popup will know what file to play when it reads $blah

-enygma
Post Reply