Home >Backend Development >PHP Tutorial >php echo string download directly

php echo string download directly

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-28 08:28:531266browse

<code><span>$text</span><span>=</span><span>"字符串直接下载"</span>;
    <span>$fileName</span><span>=</span><span>"xxx.txt"</span>;
    <span>header</span>(<span>"Content-Type: application/txt"</span>);
    <span>header</span>(<span>"Content-Disposition: attachment; filename="</span><span>.</span><span>$fileName</span>);
    echo <span>$text</span>;
</code>
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the direct download of php echo string, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn