linux php解决方案

WBOY
Release: 2016-06-13 12:06:23
Original
1000 people have browsed it

linux php
linux  用auto_prepend_file后面路径如何配置?
------解决思路----------------------
如果你打算使用绝对路径,那就直接填上就可以
如果打算使用相对路径,这个路径是相对当前执行的 php 程序文件的

------解决思路----------------------
设置 auto_prepend_file = xxxx.php
就和在你程序中写上一句 include ‘xxxx.php'; 一样

所以程序中怎么写,就怎么写
------解决思路----------------------
你的 include_path 的值是什么?
只要在他指示的范围里就可以

比如 默认的 include_path 是
include_path = ".:/php/includes"

auto_prepend_file = xxxx.php
那只要把 xxxx.php 放到 /php/includes 中就可以了
注意:被启动的程序的目录中有 xxxx.php 的话,这个将被优先加载

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!