Page 1 of 1

help needed on php script

Posted: Sat Mar 05, 2005 2:04 am
by user
I need to link 7 video file .asx from one server to my server and be able to direct them to the link they pick and pop up windows media player on thier computer. I can do an asp page and know it would work but unfortunally my server doesn't have asp capabilties. On asp I would link the video title as http://www.16mmflix.com/name of video.asp? video = "1" and my asp page would redirect it to video they picked ( in this case it would be video 1) and the asp page would redirect it to that video and play it on thier computer. I could also do it in HTML as <a href = "http://www.16mmflix.com/nameofvideo.asx" but thier server automatically adds target= "blank" which brings up a blank page with http://www.16mmflix.com/nameofvideo.asx in the URL, otherwise it would work. I have a php script on my server which is not right which is http://www.16mmflix.com/redirec.php if you need to look at it. I need to know if you can create a link to the php script to my server and it would automatically bring up the windows media player to play the video they selected or click on. any help would be greatly appreciated. you can email me at jodlo@cox.net if you need to contact me. I don't know php at all , this is just what I came up with reading about php. On my website page 3 on the bottom of the page are the videos I am trying to link to. I hope I explained mysef right . If not email me an I will try to explan it futher. thank in advance.

Posted: Sat Mar 05, 2005 2:08 am
by user
sorry the link to the php script is http://www.16mmflix.com/redirect.php

Posted: Sat Mar 05, 2005 7:12 am
by feyd
typically, you just need to send the right content-type for the file involved. Potentially some other headers, but not much.. Redirecting to it I don't remember working too well. Instead, you can have PHP send it through the script. Read the header() documentation for hints and pointers on how to make such a script.