Page 1 of 1

Carriage return

Posted: Sat Aug 04, 2007 11:05 am
by spacebiscuit
Hi,

I am not sure if this is a PHP question as such but I am not sure where else o post it.

I am working on a .passwd file and it seems that each username and passord combination is on its own line.

I am adding to the password file and I want to know how I add a line with the carriage return character.

I am using PHP to edi the file by the way.

Many thanks in advance,

Rob.

Posted: Sat Aug 04, 2007 11:12 am
by Benjamin

Code: Select all

$carriage_return = "\r\n";

$line_feed = "\n";
You're probably just looking for a line feed. Windows uses two bytes for a new line, a carriage return and a new line byte.