Marco B. - 2013-05-14 13:58:26
Hi, nice (and usefull) class.
BTW I had a problem with some dbf produced by the ancient Clipper.
It's not your fault.
The Field Names should be zero-filled but, sometimes, are null terminated (with "garbage" after the first '\x00'), this is your loop:
for($k=$beg; $k<$beg+11; $k++){
if(ord($this->_raw[$k])!=0){
$name .= $this->_raw[$k];
}
}
I had to change it in:
for($k=$beg; $k<$beg+11 && ord($this->_raw[$k])!=0; $k++){
$name .= $this->_raw[$k];
}