require "./global.php"
对的../上级

解决方案 »

  1.   

    看看你的php.ini中的incluce_path是否有.
    如果没有,你就必须
    require './file.php';
    否则就可以
    require 'file.php';
      

  2.   

    include_path = "c:\apache2\htdocs\admin;c:\apache2\htdocs\;c:\apache2\htdocs\other;c:\apache2\htdocs\other\phpmyadmin"
    其中c:\apache2\htdocs\admin就是文件目录。要改成什么样子才能用require 'file.php'?
    没看明白怎么弄。
      

  3.   

    比如你的'file.php'放在 D:\web\include 中
    那么include_path = "D:\web\include"
      

  4.   

    to wangmingsky(磨碎的沙子):
    你没注意看我上边写的那个include_path,我就是你这样加的,但它必须是require "./file.php"才行,require "file.php"就是错的。
      

  5.   

    php.ini中将include_path设置为./