Re: [PHP] How to Looking at Raw Binary Data with PHP and curl

2005-09-26 Thread Jochem Maas
Graham Anderson wrote: Progressive Load is for a .mov file I need to keep the movie headers of the file intact...and just compress the actual audio/video data :) That way, Quicktime will not try to load the the whole thing before knowing what to do with the file I'll put the $key in my 'inc

Re: [PHP] How to Looking at Raw Binary Data with PHP and curl

2005-09-26 Thread Jochem Maas
Graham Anderson wrote: Is this good enough encryption for daily use ? FYI, I need to keep the first part of the file unencrypted so the file will progressively load hi Graham, could you explain this progressive load wotsit? Functions were taken from the mycrypt php page :) $chunkSize = 3

Re: [PHP] How to Looking at Raw Binary Data with PHP and curl

2005-09-24 Thread Graham Anderson
Is this good enough encryption for daily use ? FYI, I need to keep the first part of the file unencrypted so the file will progressively load Functions were taken from the mycrypt php page :) $chunkSize = 32768; $key = "6q9nKLg5" if( $fd = fopen($filepath, 'rb')){ while(!feof($fd)

Re: [PHP] How to Looking at Raw Binary Data with PHP and curl

2005-09-24 Thread Jasper Bryant-Greene
Graham Anderson wrote: How do you display raw binary data of a file sent from a server with curl ? You can probably just use file_get_contents() if allow_url_fopen is enabled (it is by default). For binary data, base64_encode and it's friend base64_decode allow you to encode and decode b