Cause browser to prompt user to save file you will create from a string HTML PHP Basic example: An example using WordPress:
Category: Files
Paths
Up 1 parent directory level PHP Website Root directory This will give you the root directory of the current website (not the server root), e.g. ‘/public_html/’. If you want to access a folder above it you can do this: The current file Filesystem path – web server referenced