Hi BJ.

I think it is a string termination char, because I am trying to put one at
the end of each line in order to save the whole file as a csv.

In order to get each csv to work on whatever platform is being used, I am
doing this:


while(  )
{

stuff
stuff

if($platform=="Windows") $file_info.="$last_name,$first_name\r\n";
if($platform=="Macintosh") $file_info.="$last_name,$first_name\r";
if($platform=="Linux") $file_info.="$last_name,$first_name\n";
if($platform=="Unix") $file_info.="$last_name,$first_name\n";
}



The problem is that I get extra line endings and I can't figure out why. Can
you see any reason why this wouldn't work?

Thanks,
steve



> 
>> In php, I am combining strings using " .= " , but it is placing
>> a funny little character between the strings and messing up
>> my file. I tried to send an example, but the forum system
>> would not allow stylized text, and the symbol will not
>> show up otherwise (it looks like a rectangle...)
> 
> Probably, this is a string termination character (like \r).  Try putting
> rtrim( ) round each of the strings being concatenated, this will take
> anything off the end.
> 
> 
> ____ • The WDVL Discussion List from WDVL.COM • ____
> To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
> Send Your Posts To: [EMAIL PROTECTED]
> To set a personal password send an email to [EMAIL PROTECTED] with the
> words: "set WDVLTALK pw=yourpassword" in the body of the email.
> To change subscription settings to the wdvltalk digest version:
> http://wdvl.internet.com/WDVL/Forum/#sub
> 
> ________________  http://www.wdvl.com  _______________________
> 
> You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> To unsubscribe via postal mail, please contact us at:
> Jupitermedia Corp.
> Attn: Discussion List Management
> 475 Park Avenue South
> New York, NY 10016
> 
> Please include the email address which you have been contacted with.
> 


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to