I am trying to include in my website a txt file with php using the following code
<?php
$myFile = '[http://users.otenet.gr/~vag1976/optonio/NOAAMO.TXT]';
$fp = fopen("$myFile", "r");
while(!feof($fp)) {
echo fgets($fp) . "<br />";
}
fclose($fp);
?>
The problem is that using this php code the result is not exactly the same as the original. The gaps (spaces) between the words are lost and are replaced by only one space. The viewing result is terrible. Any ideas?