解决方案 »

  1.   

    对应的函数是set_include_path() 设置某个目录为自动包含路径,这样这个目录下的文件,你可以直接include 而不需要写路径了
      

  2.   

    get_include_path() 获取当前的环境变量,取php.ini里设置的 include_path路径
      

  3.   

    返回的是 php.ini 中 include_path 设定的值
    .;C:\php\pear 的含义是:
    . 从当前目录检查被包含的文件是否存在
    C:\php\pear 从 C:\php\pear 目录检查被包含的文件是否存在
    分号表示并列的意思,小学语文就讲授了
      

  4.   

    ; UNIX: "/path1:/path2"
    ;include_path = ".:/php/includes"
    ;
    ; Windows: "\path1;\path2"
    ;include_path = ".;c:\php\includes"