Cause browser to prompt user to save file you will create from a string HTML PHP Basic example: An example using WordPress:
Category: Files
Uploads Directory
Create our own directory within /uploads Create our own directory on site root
WordPress Paths
WordPress root Homepage URL Reirect to a page Site WP install URL The URL of the WordPress install. Usually identical to using site_url(), but not necessarily! User home_url() generally. URL to WP admin area For ap-admin you should use site_url(), tahts the correct usage! WordPress root – Server filesystem WordPress Theme get_stylesheet_directory_uri() is better because […]
Working with directories
Create a directory it doesn’t already exist