> echo "This doesn't work\n'; // Displays: This doesn't work\n
Seems to me like that would generate parse error.. :s But yea, we get your
point.. :)
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
\n must be included in double-quotes because it's treated like a variable.
echo "This works\n"; // Displays: This works
echo "This doesn't work\n'; // Displays: This doesn't work\n
> From: [EMAIL PROTECTED] (Labunski)
> Newsgroups: php.general
> Date: Mon, 5 Apr 2004 00:58:35 +0300
>
Thanks for the promp replies to my message. After a bit of testing, running
command line, and doing some debugging, I found that it was an ftp statement
that was causing the problem. It was sending the file I was creating (which
was correct) in ASCII format and this was changing the LF to CRLF.
Hi,
If indeed \n puts CRLF pairs, which i doubt,
you can use the hex code for LF which is 0x0A
istead.
Cheers,
Catalin
"Michael Isaacs" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Still new to PHP - any assistance would be very much appreciated...
>
> I am using a p
Tomasz Zolnierczyk wrote:
>
> subscribe [EMAIL PROTECTED]
>
> =
> Tomasz Zolnierczyk
>
> "The Path Of Excess Leads To The Tower Of Wisdom"
> - W. Blake
>
> __
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
If you are trying to use \n for a new line in HTML code, it will not work.
In other words
echo "Hello\nWorld
instead. Also, be sure that you are using double quotes instead of single
quotes. Single quoted text is literally interpreted.
--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
6 matches
Mail list logo