>  기사  >  백엔드 개발  >  php auto_prepend_file

php auto_prepend_file

WBOY
WBOY원래의
2016-06-23 13:50:001555검색

auto_prepend_file中可以配置多个php文件么??


回复讨论(解决方案)

不可以,但你可在文件里 include 多个文件

不可以,但你可在文件里 include 多个文件

 php.ini 中; Automatically add files before PHP document.
; http://php.net/auto-prepend-file 这个是什么意思啊 他那里写着files 是可以配置多个么?

auto_prepend_file
string
Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the require function, so include_path is used.

The special value none disables auto-prepending.

是一个文件啊。

auto_prepend_file
string
Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the require function, so include_path is used.

The special value none disables auto-prepending.

是一个文件啊。

 如果传到服务器的话那个相对路径怎么配置啊?

由 include_path 指定

建议使用绝对路径,但可以使用dirname(__FILE__)来获得。

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.