Writing and reading files in PHP

Examples of saving and reading text data and arrays to files.

14.05.2021
72

Comments

to add a comment.

Other publications

Serialize function, possible problems
The serialize () function returns a string representation of any value (array, object, etc.). Using serialize on an...
32
0
Generating the sitemap.xml file
An example of creating a sitemap file (sitemap.xml) in PHP. Integrating it into the site and connecting it to robots.txt
37
0
Regular Expression Shortcodes
Often on sites, it becomes necessary to insert dynamic information blocks into the texts of pages - banners, phones...
25
0
Checking data with regular expressions
A collection of regular expressions with examples in PHP for validating data from form fields.
49
0
Automatic setting of the user's time zone
date_default_timezone_set sets the default timezone used by all date / time functions.
113
0
How to set up Last-Modified
The Last-Modified header helps to optimize the loading of web pages and make the job easier for search engines.
100
0