RE: [PHP] how to stream a movie file with fread

2005-09-23 Thread bruce
if i may... what exactly are you trying to do. are you simply trying to get a single movie to stream... are you trying to get a better feel for how/what streaming is? -bruce -Original Message- From: Graham Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 4:07 PM To:

Re: [PHP] how to stream a movie file with fread

2005-09-23 Thread Philip Hallstrom
I am trying to stream a movie file with 'fread' this my first step in trying to dynamically encrypt the file as it is being streamed from the server do I need to fread the data in chunks? If so, how? $filename =$path2file; $file = fopen($filename,'r'); $fileSize = filesize($filename);

Re: [PHP] how to stream a movie file with fread [success] Now, how to do a fast encrypt ?

2005-09-23 Thread Graham Anderson
Ok, I got it :) Is there a better way to do a very fast encryption of a file for a key that changes daily ? The movie is loading and playing at the same time [progressive/rtsp], so the encrypt/decrypt needs to be pretty fast I tried mcrypt but it seemed way to slow Maybe there is a