Create txt file using PHP without using any libraries

In this video I have shown how to create txt file using PHP without using libraries.
This is demonstrated in xampp server in windows PC.
Add the below header to the page to force download by creating a notepad file.

The complete page is shown below.

On loading the page in server the below notepad file will be created.

25 views