Updating text files using php


updating text files using php-86updating text files using php-67updating text files using php-61

The previous section showed how you can find out a good deal about the files you’re working with before you start reading or writing to them.

Now let’s look at how you can read the contents of a file.

To determine when a file was last accessed, modified, or changed, you can use the following functions respectively: Both functions return a Boolean value whether the operation can be performed on the file.

Using the ternary operator you can tailor the display to state whether the file is or is not accessible as appropriate.

You may well be familiar with databases such as My SQL and Access which are an ever-increasingly common means of storing data.