Re: Including text with PHP and keeping blanks

From: Date: Mon, 16 Jun 2003 23:32:08 +0000
Subject: Re: Including text with PHP and keeping blanks
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151752@lists.php.net to get a copy of this message
"Fredrik Fornwall" <frefo253@student.liu.se> wrote in message news:3EEE433C.4000508@student.liu.se... > Hello! > > I am just wondering if there exist some built-in function in PHP to > include text files in HTML while retaining blank spaces and tabs. While > I have found some text to HTML converting scripts I would prefer to let > PHP format the text while including it into a web page, instead of > creating a separate file first. Any suggestions? echo "<pre>$mytext</pre>"; // ;-) Unless you are going to render to a fixed-width font, your spacing will suffer anyway... or do you only care about left-hand spaces, ie for indenting? -- Hugh Bothwell hugh_bothwell@hotmail.com Kingston ON Canada v3.1 GCS/E/AT d- s+: a- C+++ L++>+++$ P+ E- W+++$ N++ K? w++ M PS+ PE++ Y+ PGP+ t-- 5++ !X R+ tv b++++ DI+++ D-(++) G+ e(++) h-- r- y+

« previous php.general (#151752) next »