Cause browser to prompt user to save file you will create from a string HTML PHP Basic example: An example using WordPress:
Category: Files
Working with directories
Create a directory it doesn’t already exist
WordPress Paths
Website Root WordPress root Get URL for the current site including the sub directory if WordPress is not installed in the domains root directory (e.g. to where “wp-blog-header.php” and “wp-admin/” are located). WordPress Theme get_stylesheet_directory_uri() is better because get_template_directory_uri() will get the main theme, not the child theme if being used Return full URI path […]
Uploads Directory
Create our own directory within /uploads Create our own directory on site root