php error fopen(): Filename cannot be empty in

前端 未结 2 1824
无人共我
无人共我 2021-01-29 14:10

Send email with attachment code was working fine recently we have transfer the file to another hosting server idk what happen it display the below error,

Wa

相关标签:
2条回答
  • 2021-01-29 14:48

    Problem Solved

    to hide the warning just use "@" ex: @fopen, @fread, @fclose

    Phew 3hrs wasted to solve this warning

    0 讨论(0)
  • 2021-01-29 15:04

    Default size of uploading temp file is 2mb Increase Size By

    upload_max_filesize=2M
    

    TO

    upload_max_filesize=100M
    

    in php.ini xampp, and after that restart xampp. I hope you will not get any errors and that the file will be read also.

    0 讨论(0)
提交回复
热议问题