I must suggest to just add like
header("Content-Type: text/plain"); // Don't use HTML
To the top of examples like that...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Curt Zirzow" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> * Thus wrote John W. Holmes (
* Thus wrote John W. Holmes ([EMAIL PROTECTED]):
> Thomas Hochstetter wrote:
> >
> >$text = "The quick brown fox jumped over the lazy dog.";
> >$newtext = wordwrap($text, 20);
> >
> >echo "$newtext\n";
> > [...]
>
> HTML does not render newlines. You need to use . View the source
> of this code in
Thomas Hochstetter wrote:
Hi there.
I got a question from someone why the following (from the manual) will not
bring the desired output:
/* if I open the following txt file and in explorer*/
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap($text, 20);
echo "$newtext
Hi there.
I got a question from someone why the following (from the manual) will not
bring the desired output:
Is this a php.ini setting?
Thomas
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!
--
PHP General M
Browsers don't parse \n as a new line, try using which will make a new
line
Andrew
- Original Message -
From: "alpherjo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 16, 2001 9:51 PM
Subject: [PHP] \n not working
> I am just learni
I am just learning PHP. I have it installed on my Win 2000 IIS to practice,
and after I save PHP files in my wwwroot folder, I go ahead and access my
practice pages through IE via my full (universal) server address. However,
the \n code (to start a new line) never works. Any ideas?
Thanks!
--
6 matches
Mail list logo