0
我有長文件和文本。我想打印在我的網站上usign PHP但是當我使用在PHP中使用格式化讀取文本文件
<?php
echo file_get_contents("som.log");
?>
它打印出的文本不換行,我怎麼能解決這個問題?
2016-04-14 19:42:30,894 - __main__ - INFO - [Network] not found ;O 2016-04-14 19:42:30,898 - __main__ - WARNING - Just define wa 2016-04-14 19:42:30,908 - __main__ - INFO - getting pid 2016-04-14 19:42:31,914 - __main__ - WARNING - [Server] Begin of loop #0 2016-04-14 19:43:45,616 - __main__ - INFO - [Network] not found ;O 2016-04-14 19:43:45,620 - __main__ - WARNING - Just define wa 2016-04-14 19:43:45,630 - __main__ - INFO - getting pid
嘗試'nl2br(file_get_contents(「som.log」));' –