Re: Semi-newbie Question .... streams ...

From: Date: Thu, 15 Nov 2007 16:09:54 +0000
Subject: Re: Semi-newbie Question .... streams ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264600@lists.php.net to get a copy of this message
Paul Farr wrote:
I'm working on one my first PHP projects, and I have extensive experience with coding, so I know what I want to do is not outrageous. The short version is: I need to master the download stream for a file, while delivering it to the enduser, I need to change some bytes in the file data. A simple search and replace. I want to do it in the stream, don't want to create a new file each time. The data is not a string, it is in fact a serial number being inserted into an "EXE" download. I "get" how to do this with ASP, but the active replace in PHP has me totally lost. Any hints ?
If this is an EXE, I assume it is in binary format? If so, would not your serial number have been compiled into the software? Wouldn't a simple search/replace fail in this case? -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#264600) next »