Re: [PHP] serving video files with php

2006-06-17 Thread Ahmed Saad

On 15/06/06, Andras Kende <[EMAIL PROTECTED]> wrote:

Is there any drawback servings video files through php downloader script on
high load site?


the question is why you want that?

If you want to "log" how many times/when the video files were viewed,
you can send the request to a PHP script that does the logging first
and then send an HTTP redirection to the actual video file (but
actually users could bypass logging if they head directly for the
video URL)..

If you manipulate the video file on-the-fly, I think you might need to
consider caching with the above solution ..

/ahmed

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] serving video files with php

2006-06-15 Thread Richard Lynch
On Thu, June 15, 2006 3:04 am, Andras Kende wrote:
> Is there any drawback servings video files through php downloader
> script on
> high load site?
>
> Or just straight link to the videos are more efficient?

TAANSTAAFL

There certainly IS some overhead using PHP downloader script, and a
straight link IS definitely more efficient.

The correct question is "HOW MUCH more efficient"

The correct answer is "You'll only know after you test on YOUR machine"

Note that the bandwidth is probably gonna kill you long before PHP
does, if you write a lean mean PHP application...

If your PHP download script has to include 4,000 class files before it
can do anything useful, well, no, it won't be fast.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] serving video files with php

2006-06-15 Thread Andras Kende
Hello,

 

Is there any drawback servings video files through php downloader script on
high load site?

 

Or just straight link to the videos are more efficient?

 

 

Thank you,

 

Andras Kende

http://www.kende.com