I have a PHP program that throws some text into a file.
Later I display it using the code below (php and html).
But I'm trying to hop up the code a little and would like to bold/blink/underline
just a few lines of the output.
I've inserted the
<b> xx </b>
into the file along with the text at selected points.
When it reads it it just puts
</b> </i> </blink>
right onto the screen.
$text = file('/home/myplace/public_html/get_text001.txt');
// echo 'box in newdisplay below <br>';
$rev_input = array_reverse($text);
foreach ($rev_input as $line)
// echo trim($line) . '<br>';
echo ($line) ;
// echo 'box in new display above <br>';
I'd like to be able to insert a few html commands into a text file and have them viewed as html with the web page reads it.
Thanks!
kc