linux 用auto_prepend_file后面路径如何配置?
回复讨论(解决方案)
如果你打算使用绝(、本文来源gao@!dai!ma.com搞$$代^@码网*搞gaodaima代码对路径,那就直接填上就可以
如果打算使用相对路径,这个路径是相对当前执行的 php 程序文件的
如果你打算使用绝对路径,那就直接填上就可以
如果打算使用相对路径,这个路径是相对当前执行的 php 程序文件的
使用相对路径,这个路径应该怎么写??
设置 auto_prepend_file = xxxx.php
就和在你程序中写上一句 include ‘xxxx.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 的话,这个将被优先加载
我的文件目录是这个样子的 auto_prepend_fille里要添加的文件在php 文件夹里,主目录和pad目录下的所有html页面都要用,这个路径该怎么写?
你的 include_path 的值是什么?
只要在他指示的范围里就可以
比如 默认的 include_path 是
include_path = “.:/php/includes”
设
auto_prepend_file = xxxx.php
那只要把 xxxx.php 放到 /php/includes 中就可以了
注意:被启动的程序的目录中有 xxxx.php 的话,这个将被优先加载
谢谢已经明白了