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 bet

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); $Conte

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

2005-09-23 Thread bruce
: php Subject: [PHP] how to stream a movie file with fread 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&

[PHP] how to stream a movie file with fread

2005-09-23 Thread Graham Anderson
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); $Conte