国产自在线拍精品|久久久久国产熟女精品|亚洲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ā)生錯(cuò)誤

[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' => '26', 'attachment' => ['id' => 26, 'type' => 3, 'file_name' => '初級(jí)會(huì)計(jì)職稱.r...', ...], 'savepath' => '/www/wwwroot/site.57...', ...])
  3. at header('Content-type: applic...') in CommonController.php line 79
  4. at CommonController->attachment('26')
  5. at ReflectionMethod->invokeArgs(object(CommonController), ['26']) in Container.php line 372
  6. at Container->invokeReflectMethod(object(CommonController), object(ReflectionMethod), ['id' => '26']) 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-26.html
REQUEST_METHOD GET
CONTENT_TYPE application/x-www-form-urlencoded; Charset=UTF-8
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /attachment-26.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 52810
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 1746834090.4397
REQUEST_TIME 1746834090
Environment Variablesempty
ThinkPHP Constantsempty
0.034544s