Page 1 of 1

Viewing movie through PHP

Posted: Mon Mar 24, 2008 6:46 am
by Resco
Hello,

I got a server with some .mp4 movie files. The urls are like: http://movies.com/movies/1.mp4
On my second server I got a PHP script for indexing the movies etc, and to view them, however, I would like to hide the real url of the movies on server 1. I would like my PHP script to link to a script like http://secondserver.com/movies.php?movie=1 and it would then begin the play the movie http://movies.com/movies/1.mp4 (but without displaying this url offcourse). Can this be done without using the bandwidth of server 2 (so it would just "buffer" the movies from server 1).

Thanks in advance,

Resco

Re: Viewing movie through PHP

Posted: Mon Mar 24, 2008 11:41 am
by Christopher
You could put the movie in a frame or iframe.

Re: Viewing movie through PHP

Posted: Mon Mar 24, 2008 1:04 pm
by Resco
arborint wrote:You could put the movie in a frame or iframe.
But that doesn't hide the URL (it's still viewable in the source code).

Re: Viewing movie through PHP

Posted: Mon Mar 24, 2008 5:55 pm
by toasty2
On the first server you could have a script that the movies go through to hide the URL. Just output the correct headers and use readfile().