Welcome Guest, Not a member yet? Register   Sign In
i want exclude debug infomation when output csv
#4

(This post was last modified: 07-23-2022, 04:40 PM by yoshi.)

@InsiteFX  @kenjis
thanks every time. Smile
The cause this time seemed to be that a string was returned upon return.
I stopped returning view and replaced it with exit

PHP Code:
    public function csvExport(): string
    
{
          :
        // close stream
        fclose($stream);
        
        
// TODO: Debugging information is attached to the output CSV.
        // return view('home/index');
        exit();
    

Why can I write to a closed CSV? after fclose command.
Is 'php://output' involved?
Reply


Messages In This Thread
RE: i want exclude debug infomation when output csv - by yoshi - 07-23-2022, 04:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB