Sorry, don't understand what you mean... If I understand it right, you want PHP to include HTML asis and make the text look like it would in notepad (with spaces and so on)... Like echo $istxt?"<pre>".htmlentities(implode('',file($filename)))."</pre>":implode('' ,file($filename)); However, my code is often little confusing... You might have to add stripslashes() to the echo part to avoid \ all over your output... Hope it helped / DvDmanDT "Fredrik Fornwall" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > 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? > > Thanks, > Fredrik >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php