PHP: How do I display the contents of a textfile on my page?

前端 未结 8 768
囚心锁ツ
囚心锁ツ 2020-12-16 09:37

I have a .txt file on my web server (locally) and wish to display the contents within a page (stored on the same server) via PHP echo.

The .txt file contains a numbe

8条回答
  •  不思量自难忘°
    2020-12-16 10:23

    
    

    Try this to open a file in php

    Refer this: (http://www.w3schools.com/php/showphp.asp?filename=demo_file_fopen)

提交回复
热议问题