Code: Select all
<?php
$file = fopen("test.txt", "r");
$data = fread($file, 1000);
$fixed_data = htmlentities($data);
echo "<pre>$fixed_data </pre>";
?>-------------
Hi guys, got this problem...- I'm trying to display the "test.txt" file but when it is displayed in the browser, the fonts kinda go to a default font.
I tried taking out the preserve <pre> tags but the content of the "test.txt" was displayed as one chunk of text without any paragraphing (the way i want it to be displayed)
Any ideas how I can around this fellas?
btw, my test.txt has the following contents:
Code: Select all
As an education service provider, we run our own schools, as
well as organise educational clinics and training programmes
related to teaching and learning.
As an education technology consultant, we provide business
solutions and expertise in the niched areas of Education IT
and Infocom Technology, especially in the areas of content
development and content delivery.