PHP Notice: Undefined offset: 1 with array when reading data

前端 未结 10 1505
遇见更好的自我
遇见更好的自我 2020-12-04 15:14

I am getting this PHP error:

PHP Notice:  Undefined offset: 1

Here is the PHP code that throws it:

$file_handle = fopen($pa         


        
10条回答
  •  [愿得一人]
    2020-12-04 15:59

    This is a "PHP Notice", so you could in theory ignore it. Change php.ini:

    error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
    

    To

    error_reporting = E_ALL & ~E_NOTICE
    

    This show all errors, except for notices.

提交回复
热议问题