logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Show table in txt file in html page?
Author
martyp



Joined: 01 Nov 2015
Posts: 3

PostPosted: Sat 20 Feb '16 14:46    Post subject: Show table in txt file in html page? Reply with quote

Hi all,

I'm hoping there's a way of doing this without using PHP etc.
All I'm trying to do is display a table in a text file which is the result of an automated export process.

The text file contains the data in the format as below:
<table border="1" rules="all">
<tr>
<th rowspan="3">Month</th>
<th colspan="6">Temperature</th>
<th colspan="2">Rainfall</th>
</tr>
<tr>
<th colspan="3">daytime maximum</th>
<th colspan="3">nighttime minimum</th>
<th rowspan="2">total</th>
<th rowspan="2">rainy days</th>

I think it was intended for php but any method of displaying a text file in the html page just shows it as the raw text.
Is there a way I can get it to display as a table please?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Sat 20 Feb '16 17:45    Post subject: Reply with quote

rename the text file .html so the server knows it's html and can send the proper content-type in the response.
Back to top


Reply to topic   Topic: Show table in txt file in html page? View previous topic :: View next topic
Post new topic   Forum Index -> Apache