亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何修復“file_get_content”無法打開流

如何修復“file_get_content”無法打開流

PHP
料青山看我應如是 2021-09-18 15:55:23
我正在使用cups-ipp從網絡項目打印我得到了這個錯誤file_get_contents(./helloworld.pdf):無法打開流:沒有這樣的文件或目錄我試圖從存儲中獲取文件但遇到了同樣的錯誤        $builder = new Builder();        $responseParser = new ResponseParser();        $printerManager = new PrinterManager($builder, $client, $responseParser);        $printer = $printerManager->findByUri('ipp://localhost:631/printers/HP_HP_ColorLaserJet_MFP_M278-M281');        $jobManager = new JobManager($builder, $client, $responseParser);        $filePath = '../../../storage/app/public/estimated_dates.pdf';        $job = new Job();        $job->setName('job create file');        $job->setUsername('demo');        $job->setCopies(1);        $job->setPageRanges('1');        $job->addFile('./helloworld.pdf');        $job->addAttribute('media', 'A4');        $job->addAttribute('fit-to-page', true);        $result = $jobManager->send($printer, $job);我鏈接了存儲,我確定路徑是正確的(我也使用過auto complete path plugin)
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 116 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號