$file_path = 'http://www.ifcmarkets.ru/pdf/forexbook/en/Forex_Trading_Strategies.pdf'; header('Content-Type: text/html; charset=utf-8'); function fileRandLine($file) { $f = fopen($file, "r"); while (!feof($f)) { $line = fgets($f); echo $line; } fclose($f); } echo fileRandLine($file_path); On the screen there are some kind of cracks.
Guys what am I doing wrong And is my code optimal or is there a better way?
Thank.