# Formatting txt files with php and external css

**URL:** https://forum.kirupa.com/t/formatting-txt-files-with-php-and-external-css/234529
**Category:** Uncategorized
**Created:** [August 3, 2007, 2:09am UTC](https://forum.kirupa.com/t/formatting-txt-files-with-php-and-external-css/234529 "2007-08-03T02:09:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![killahert](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@killahert](https://forum.kirupa.com/u/killahert)
#### Post date: [August 3, 2007, 2:09am UTC](https://forum.kirupa.com/t/formatting-txt-files-with-php-and-external-css/234529/1 "2007-08-03T02:09:11Z")

</div>

I have a txt file that is formatted example:

```auto

content=
<p class='title'>Services</p>
<p class='body'>
Our services span all phases of design from the initial consultation to the post installation evaluation including; inventory, managing the bidding process, coordination of contractors and move management. Our design team has comprehensive experience in working on large-scale projects.<br>
Our design team understands that personal attention along with clear and regular communication will assure the success of your project. We would be happy to host you and/or your group on a tour of campus facilities similar to the project you are planning. Please feel free to contact our office for assistance with any questions you may have concerning your interiors needs.</p>
<li class="bullet">
Interior Design Package
Interior Design Package
Carpet and Flooring
</span></p>

```

and I have external css that nicely formats my txt file and its readable in flash, for now I’d like use php to grab that file from a server and push it to a browser as html file. I am not sure if its possible but I read a little on fread function in [php.net](http://php.net) but its just beyond my understand. once I accomplish that I will be able to print my txt files in flash website.

thank you all

EDIT: I posted similar question in the AS1 and AS2 forums but I am thinking that this is the right place. so sorry for double posting
