Hello
I have a text file which contains some data I want to display in a HTML page. The file looks like this...
[senario]Type senario here
[who]Who said it
[what]What was said
[who]Who said it
[what]What was said
[comment]What a load of rubbish
I want to use PHP to parse the text file and display the text in a HTML table line this
<table>
<tr>
<td colspan="2">senario line</td>
</tr>
<tr>
<td>who line</td>
<td>what line</td>
</tr>
....repeated
<tr>
<td colspan="2">comment line</td>
</tr>
</table>
Can anyone help with the reading the file and stripping out the tags??
Thanks in Advance
John
I have a text file which contains some data I want to display in a HTML page. The file looks like this...
[senario]Type senario here
[who]Who said it
[what]What was said
[who]Who said it
[what]What was said
[comment]What a load of rubbish
I want to use PHP to parse the text file and display the text in a HTML table line this
<table>
<tr>
<td colspan="2">senario line</td>
</tr>
<tr>
<td>who line</td>
<td>what line</td>
</tr>
....repeated
<tr>
<td colspan="2">comment line</td>
</tr>
</table>
Can anyone help with the reading the file and stripping out the tags??
Thanks in Advance
John