How to not generate. to download the DOC file, extract the database content and download it. do not generate the DOC file on the server, you can only directly generate a file in the cache when you click it and download the generated file now. I have already done this. I just don't know how to directly click download without generating the file. ------ solution ---------------- In after the HEADER is configured, how to avoid using echo directly. provides the download of DOC files.
Now we need to use this function to extract the database content and download it to the. DOC file.
But do not generate files on the server. you can only generate and download files directly in the cache when clicking.
Now, I have generated and downloaded the file.
Just click to download without generating a file.
------ Solution --------------------
After HEADER configuration, directly use echo $ content
$ Content is the content you need. you can organize it first and click it to create it. this is the same as reading a file, but you do not need to generate a file.
------ Solution --------------------
[Code = php]
Header ("Content-type: application/msword ");
Echo "the variables in the document content are stored here ";
[/Code]