PHPSuperBlog.com

Write text into a text file with PHP

Database is a place to store data for future use, however we could also store string in a text file for future use. The way to do this is very simple, all we have to do is to use the PHP function fwrite() to write the string into the text file. I have created an example here to demonstrate how to do so. Continue Reading →

Read one line of text from a text file with PHP

In some cases, rather than using the database to store data, you can also use a text file “.txt” to store a record. Maybe the record is a name, a number or a line of text stored in the text file. To read the line in the text file, I have create an example to show you how to do so: Continue Reading →

  • Categories

  • Useful Downloads