国产自在线拍精品|久久久久国产熟女精品|亚洲AV成人影视综合网|国产免费亚洲亚洲成人aa|久久久久青草大香综合精品|久久精品视频一区二区三区|久久久精品区二区三区免费9|久久国产精品高清一区二区三区

精品課程   更多>>

★★★★★ 952人瀏覽

★★★★★ 938人瀏覽

★★★★★ 855人瀏覽

★★★★★ 1125人瀏覽

★★★★★ 1001人瀏覽

★★★★★ 986人瀏覽

★★★★ 864人瀏覽

培訓(xùn)報(bào)名   更多>>

★★★★★ 9967人瀏覽

★★★★★ 6254人瀏覽

★★★★★ 6987人瀏覽

★★★★★ 3568人瀏覽

★★★★★ 4637人瀏覽

★★★★★ 6245人瀏覽

★★★★★ 25651人瀏覽

★★★★★ 6897人瀏覽

學(xué)員風(fēng)采更多>>

學(xué)校環(huán)境更多>>

客服咨詢

在線咨詢

客服1:1986150154

客服2:421248028

服務(wù)熱線

服務(wù)熱線

0598-8288801

0598-8288802

官方微信

官方微信

0.043429s
系統(tǒng)發(fā)生錯誤

[2] ErrorException in CommonController.php line 79

Cannot modify header information - headers already sent by (output started at /www/wwwroot/site.57kjpx.com/runtime/classmap.php:688)

  1. $savePath = $savepath . $attachment['file_path'];
  2. // 檢查文件是否存在
  3. if (! file_exists($savePath) ) {
  4. $this->error('文件未找到');
  5. }else{
  6. // 打開文件
  7. $file1 = fopen($savePath, "r");
  8. // 輸入文件標(biāo)簽
  9. Header("Content-type: application/octet-stream");
  10. Header("Accept-Ranges: bytes");
  11. Header("Accept-Length:".filesize($savePath));
  12. Header("Content-Disposition: attachment;filename=" . $fileName);
  13. ob_clean(); // 重點(diǎn)?。。?
  14. flush(); // 重點(diǎn)?。。。】梢郧宄募卸嘤嗟穆窂矫约敖鉀Q亂碼的問題:
  15. //輸出文件內(nèi)容
  16. //讀取文件內(nèi)容并直接輸出到瀏覽器
  17. echo fread($file1, filesize($savePath));
  18. fclose($file1);

Call Stack

  1. in CommonController.php line 79
  2. at Error::appError(2, 'Cannot modify header...', '/www/wwwroot/site.57...', 79, ['id' => '8', 'attachment' => ['id' => 8, 'type' => 1, 'file_name' => '...', ...], 'savepath' => '/www/wwwroot/site.57...', ...])
  3. at header('Content-type: applic...') in CommonController.php line 79
  4. at CommonController->attachment('8')
  5. at ReflectionMethod->invokeArgs(object(CommonController), ['8']) in Container.php line 372
  6. at Container->invokeReflectMethod(object(CommonController), object(ReflectionMethod), ['id' => '8']) in Module.php line 129
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 176
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 121
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 134
  12. at Module->exec() in Dispatch.php line 167
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 176
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 121
  18. at Middleware->dispatch(object(Request)) in App.php line 435
  19. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
t 92d7540e476b153862b4ea2356ede7b3
r 8148
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/site.57kjpx.com/public/index.php
QUERY_STRING s=/attachment-8.html
REQUEST_METHOD GET
CONTENT_TYPE application/x-www-form-urlencoded; Charset=UTF-8
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /attachment-8.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/site.57kjpx.com/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.14.2
REMOTE_ADDR 107.148.192.196
REMOTE_PORT 50055
SERVER_ADDR 172.17.42.171
SERVER_PORT 80
SERVER_NAME m.xxxww01.net
REDIRECT_STATUS 200
PATH_INFO
HTTP_CONNECTION Keep-Alive
HTTP_CONTENT_TYPE application/x-www-form-urlencoded; Charset=UTF-8
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE zh-CN,zh
HTTP_COOKIE t=92d7540e476b153862b4ea2356ede7b3; r=8148
HTTP_REFERER http://www.baidu.com
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
HTTP_HOST m.xxxww01.net
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1751368603.142
REQUEST_TIME 1751368603
Environment Variablesempty
ThinkPHP Constantsempty
0.035212s
皮山县| 枣庄市| 尼勒克县| 桑日县| 元氏县| 蓬安县| 调兵山市| 讷河市| 光泽县| 漳浦县| 三河市| 尼木县| 涡阳县| 乳山市| 奇台县| 开远市| 凤翔县| 仙桃市| 大化| 田东县| 九江县| 乌鲁木齐县| 平塘县| 屯门区| 延庆县| 新津县| 许昌县| 马龙县| 安福县| 雅江县| 夏邑县| 定州市| 涟水县| 葫芦岛市| 昌平区| 沐川县| 临洮县| 隆安县| 满洲里市| 陵水| 霸州市|