Re: [PHP] Line Break Problem

2009-03-09 Thread Virgilio Quilario
> Hi, > >  I have a question regarding using line breaks in PHP. I have the code > something like: > >       echo "1" . "\t " . $x . "\t" . $y . "\r\n"; > > When I run the code, it looks like a whole blob of text, but when I use "View > Source", the line breaks are formatted then correctly. > Any

Re: [PHP] Line Break Problem

2009-03-09 Thread Nathan Rixham
Alice Wei wrote: Date: Mon, 9 Mar 2009 13:28:19 +0100 From: joc...@iamjochem.com To: stut...@gmail.com CC: aj...@alumni.iu.edu; php-general@lists.php.net Subject: Re: [PHP] Line Break Problem Stuart schreef: 2009/3/9 Alice Wei I have a question regarding using line breaks in PHP. I have

RE: [PHP] Line Break Problem

2009-03-09 Thread Alice Wei
> Date: Mon, 9 Mar 2009 13:28:19 +0100 > From: joc...@iamjochem.com > To: stut...@gmail.com > CC: aj...@alumni.iu.edu; php-general@lists.php.net > Subject: Re: [PHP] Line Break Problem > > Stuart schreef: > > 2009/3/9 Alice Wei > > > >> I have a q

Re: [PHP] Line Break Problem

2009-03-09 Thread Jochem Maas
Stuart schreef: > 2009/3/9 Alice Wei > >> I have a question regarding using line breaks in PHP. I have the code >> something like: >> >> echo "1" . "\t " . $x . "\t" . $y . "\r\n"; >> >> When I run the code, it looks like a whole blob of text, but when I use >> "View Source", the line brea

Re: [PHP] Line Break Problem

2009-03-09 Thread Stuart
2009/3/9 Alice Wei > I have a question regarding using line breaks in PHP. I have the code > something like: > > echo "1" . "\t " . $x . "\t" . $y . "\r\n"; > > When I run the code, it looks like a whole blob of text, but when I use > "View Source", the line breaks are formatted then corre

[PHP] Line Break Problem

2009-03-09 Thread Alice Wei
Hi, I have a question regarding using line breaks in PHP. I have the code something like: echo "1" . "\t " . $x . "\t" . $y . "\r\n"; When I run the code, it looks like a whole blob of text, but when I use "View Source", the line breaks are formatted then correctly. Anyone can plea

Re: [PHP] LINE BREAK HELL

2001-11-02 Thread John Steele
Hello René, The problem is the implode() function call (you are telling it concatenate all of the lines into one). This is not tested, but try replacing: > $fcontents_string = implode('', $fcontents); > > $fp = fopen($name.".db", "w+"); > fwrite($fp,$fcontents_string); with: for ($i=0; $

[PHP] LINE BREAK HELL

2001-10-19 Thread René Fournier
This problem has been driving me insane. I have a little script that let's users enter data into a form, which then gets appended to a file (table) as a line (row). The adding part of the script works fine--and by remembering to add a "\n" at the end of each row, when the file (table) is read, P

Re: [PHP] line break part2

2001-04-27 Thread Dddogbruce \(@home.com\)
$string = nl2br($string) This will change a new line into ; but make sure HTMLspecialchars aren't in the same part. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] line break part2

2001-04-27 Thread Philip Olson
Have a look at file() : http://www.php.net/manual/en/function.file.php $lines = file('log_test.txt'); echo $lines[4]; // prints line #5 regards, philip On Fri, 27 Apr 2001, Gary wrote: > Thanks for everyone's help on the original question. Now that I have > gotten the line breaks in

RE: [PHP] line break part2

2001-04-27 Thread PHPBeginner.com
day, April 28, 2001 2:54 AM To: [EMAIL PROTECTED] Subject: [PHP] line break part2 Thanks for everyone's help on the original question. Now that I have gotten the line breaks in a file, How do I get the file out with the breaks? Also, does anyone know of a good tutorial on file formattin

[PHP] line break part2

2001-04-27 Thread Gary
Thanks for everyone's help on the original question. Now that I have gotten the line breaks in a file, How do I get the file out with the breaks? Also, does anyone know of a good tutorial on file formatting. TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] line break

2001-04-26 Thread Alex Piaz
At 22:23 26/4/2001 -0400, Joao Prado Maia wrote: >Actually the correct sequence is \r\n on Windows platforms. Just a small >note. Yeah! You're right. I made a typo here:-) Nice to know I'm not alone. See you at php-pt;-) []'s Alex -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] line break

2001-04-26 Thread Joao Prado Maia
On Thu, 26 Apr 2001, Alex Piaz wrote: > At 22:07 26/4/2001 -0400, you wrote: > >Hi all, > >I know how to get a line break in text. Is there a way to get a line break > >between the user agent string below? I would line to print in a column > >instead of a long row. > > Use \n\r concatening with

Re: [PHP] line break

2001-04-26 Thread Alex Piaz
At 22:07 26/4/2001 -0400, you wrote: >Hi all, >I know how to get a line break in text. Is there a way to get a line break >between the user agent string below? I would line to print in a column >instead of a long row. Use \n\r concatening with your actual string See below: >$newfile = fopen("

[PHP] line break

2001-04-26 Thread Gary
Hi all, I know how to get a line break in text. Is there a way to get a line break between the user agent string below? I would line to print in a column instead of a long row. TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: [PHP] Line Break

2001-02-13 Thread John Monfort
try \r "\r\n" is equivalent to you pressing the return key. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___+- On Wed, 14

Re: [PHP] Line Break

2001-02-13 Thread David Robley
On Wed, 14 Feb 2001 14:04, Deependra B. Tandukar wrote: > Greetings! > > I know "\n" gives the new line and "\t" gives the tab. Is there any > other code for them because this is not working in the web server where > I host my web pages? > > Looking froward to hearing from you. > > Regards, > DT

[PHP] Line Break

2001-02-13 Thread Deependra B. Tandukar
Greetings! I know "\n" gives the new line and "\t" gives the tab. Is there any other code for them because this is not working in the web server where I host my web pages? Looking froward to hearing from you. Regards, DT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai