Re: [PHP] strlen ?

[email protected] (Jim Giner)
Newsgroups php.general
Message-ID <[email protected]>
On 7/6/2013 2:59 AM, Lester Caine wrote:
> Jim Giner wrote:
>> And the answer is - yes, there is a LF char at the end of my data in
>> my whole
>> table.
>>
>> Now the question is - how the heck did I put that in there?  Certainly
>> not
>> intentionally.  The data is captured from a d/e screen I wrote and it
>> simply
>> grabs the post value and inserts a new record with that value along
>> with some
>> other values.  And I don't see anything concatenating a LF to my string.
>
> The obvious question that comes to mind is 'What OS'? Having seen this
> sort of niggle many times I tend to find it relates to something working
> 'cross-os' a bit like windows ignoring case in file name and linux then
> complaining it can't find a file.
>
> It's probably worth checking the sting length back through your code
> just to confirm what added it?
>
The best I can figure is that I did a preload of many of the names from 
a csv file.  Apparently when I do that it stores the LF at the end of 
the csv line.  Have to remember that the next time.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.