Can I read a .TXT file with PHP?

前端 未结 6 940
遥遥无期
遥遥无期 2020-12-01 21:46

As I start the process of writing my site in PHP and MySQL, one of the first PHP scripts I\'ve written is a script to initialize my database. Drop/create the database. Dro

6条回答
  •  庸人自扰
    2020-12-01 22:08

    file_get_contents does all that for you and returns the text file in a string :)

提交回复
热议问题