RE: [PHP-DB] A text file include ?

2002-03-25 Thread Peter Lovatt

hi

try nl2br 

hth

Peter

---
Excellence in internet and open source software
---
Sunmaia
www.sunmaia.net
[EMAIL PROTECTED]
tel. 0121-242-1473
--- 

> -Original Message-
> From: Dave Carrera [mailto:[EMAIL PROTECTED]]
> Sent: 25 March 2002 08:35
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] A text file include ?
> 
> 
> Hi All,
> 
>  
> 
> I know how to include the contents of a test file into my app.
> 
>  
> 
> But at the moment I have to type in  tags to make in render
> properly.
> 
>  
> 
> Is there a way of reading the contents and dynamically creating
> paragraph breaks or line breaks?
> 
>  
> 
>  
> 
>  
> 
> Dave Carrera
> 
> Php Developer
> 
> http://davecarrera.freelancers.net
> 
> http://www.davecarrera.com
> 
>  
> 
>  
> 
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] A text file include ?

2002-03-25 Thread Marius Ursache



Dave Carrera a écrit :

> Hi All,
>
>
>
> I know how to include the contents of a test file into my app.
>
>
>
> But at the moment I have to type in  tags to make in render
> properly.
>
>
>
> Is there a way of reading the contents and dynamically creating
> paragraph breaks or line breaks?
>
>
>

yes

ereg_replace/preg_replace. searcg for \t (tab) \n (enter) and so on...

>
>
>
>
>
> Dave Carrera
>
> Php Developer
>
> http://davecarrera.freelancers.net
>
> http://www.davecarrera.com
>
>
>
>

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   "@'/ ,. \`@"
   /_| \__/ |_\
  \__U_/



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] A text file include ?

2002-03-25 Thread Dave Carrera

Hi All,

 

I know how to include the contents of a test file into my app.

 

But at the moment I have to type in  tags to make in render
properly.

 

Is there a way of reading the contents and dynamically creating
paragraph breaks or line breaks?

 

 

 

Dave Carrera

Php Developer

http://davecarrera.freelancers.net

http://www.davecarrera.com