Re: [PHP] str_replace binary safe??

2001-10-22 Thread DL Neil
> > > following problem appeared on PHP 3.0.16 on LINUX > > > I have a binary file, where I want to replace some letters > > > I do the following: > > > $filename = "xyz.sdc"; > > > $fd = fopen( $filename, "r+b" ); // also tried "r" > > > $x=filesize( $filename ); // this shows the correct filesiz

Re: [PHP] str_replace binary safe??

2001-10-22 Thread Oliver Heinisch
At 22.10.01 21:36, you wrote: > > > Hi folks, > > following problem appeared on PHP 3.0.16 on LINUX > > I have a binary file, where I want to replace some letters > > I do the following: > > $filename = "xyz.sdc"; > > $fd = fopen( $filename, "r+b" ); // also tried "r" > > $x=filesize( $filename )

Re: [PHP] str_replace binary safe??

2001-10-22 Thread DL Neil
> Hi folks, > following problem appeared on PHP 3.0.16 on LINUX > I have a binary file, where I want to replace some letters > I do the following: > $filename = "xyz.sdc"; > $fd = fopen( $filename, "r+b" ); // also tried "r" > $x=filesize( $filename ); // this shows the correct filesize 22528 byte

[PHP] str_replace binary safe??

2001-10-22 Thread heinisch
Hi folks, following problem appeared on PHP 3.0.16 on LINUX I have a binary file, where I want to replace some letters I do the following: $filename = "xyz.sdc"; $fd = fopen( $filename, "r+b" ); // also tried "r" $x=filesize( $filename ); // this shows the correct filesize 22528 byte $conten