php - How to serve a file for download on WordPress -
this question has answer here:
- how fix “headers sent” error in php 11 answers
i'm trying allow users download csv of database query on wordpress site. it's not download of static file, query based off of user logged in , page viewing, lot of download management plugins no allow specific file download. file not generated until user something.
i've made web service able correctly format , generate file, can't figure out how serve download. right now, download button goes web service's page. php error says,
"cannot modify header information. headers sent (long path location of web service)"
dagon's answer correct, though found out "output" single blank space before opening php tag.
Comments
Post a Comment