Fw: [PHP] Null character as field seperator in a string.

2002-04-30 Thread The_RadiX
- Original Message - From: The_RadiX [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Dave MacRae [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 10:05 PM Subject: Re: [PHP] Null character as field seperator in a string. Hey.. yeah I might.. I don't know if I am right or just

[PHP] Null character as field seperator in a string.

2002-04-29 Thread Dave MacRae
For historic reasons, I have a file that contains a number of records in which the fields are seperated by the NULL character, i.e, field1\0field2\0field3\0field4 I need to parse out the fields from this string. The string is read into the program using $buffer = fgets(...). This

Re: [PHP] Null character as field seperator in a string.

2002-04-29 Thread The_RadiX
on the right track.. but it's worth a go eh?? good luck.. - Original Message - From: Dave MacRae [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 8:26 PM Subject: [PHP] Null character as field seperator in a string. For historic reasons, I have a file that contains

RE: [PHP] Null character as field seperator in a string.

2002-04-29 Thread Dave MacRae
Hey.. yeah I might.. I don't know if I am right or just blabbering crap but try to add these param's to your regex statement.. preg_split(/\0/i, $buffer); note the i.. It should let it read past newlines.. although you're prob is with null (\0) chars.. as I said.. Don't know if

Re: [PHP] Null character as field seperator in a string.

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 18:26, Dave MacRae wrote: For historic reasons, I have a file that contains a number of records in which the fields are seperated by the NULL character, i.e, field1\0field2\0field3\0field4 I need to parse out the fields from this string. The string is read into the

RE: [PHP] Null character as field seperator in a string.

2002-04-29 Thread Dave MacRae
On Monday 29 April 2002 18:26, Dave MacRae wrote: For historic reasons, I have a file that contains a number of records in which the fields are seperated by the NULL character, i.e, field1\0field2\0field3\0field4 I need to parse out the fields from this string. The string is