RE: [PHP] Text File Formating.
| From: | Cal Evans | Date: | Mon, 29 Apr 2002 15:19:17 +0000 |
| Subject: | RE: [PHP] Text File Formating. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95171@lists.php.net to get a copy of this message | ||
the manual is your friend.
http://www.php.net/manual/en/function.nl2br.php
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-----Original Message-----
From: Randum Ian [mailto:ian@danceportal.co.uk]
Sent: Monday, April 29, 2002 10:20 AM
To: PHP
Subject: [PHP] Text File Formating.
Hi there,
I have got various text files which I need to convert on the fly to HTML
with PHP.
How do I convert this:
--- TEXT ---
CHART RETURN
Chart Date: blah
No. Artist - 'Track (Remix)' (Label)
1. blah - 'blah (blah mix)' (blah)
--- END TEXT---
to this:
--- HTML ---
CHART RETURN<br />
<br />
Chart Date: blah<br />
<br />
No. Artist - 'Track (Remix)' (Label)<br />
<br />
1. blah - 'blah (blah mix)' (blah)<br />
--- END TEXT---
Any help much appreciated, Ian.
---
Randum Ian
DJ / Reviewer / Webmaster, DancePortal (UK) Limited
ian@danceportal.co.uk
http://www.danceportal.co.uk
DancePortal.co.uk - Global dance music media
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php