What does __FILE__ mean?

后端 未结 3 777
醉话见心
醉话见心 2020-12-24 06:32

I have the following code from Codeigniter index.php

My understanding is that,

If / of string position in $system_folder

3条回答
  •  既然无缘
    2020-12-24 07:06

    __FILE__ is simply the name of the current file. realpath(dirname(__FILE__)) gets the name of the directory that the file is in -- in essence, the directory that the app is installed in. And @ is PHP's extremely silly way of suppressing errors.

提交回复
热议问题