相对被访问页面的..
如,你的 login.php 放在
/user/login.php下.而 command 放在 /lib/下的话./user/login.php 就应该 require("../lib/command.php");而 /index.php 就只需要 require("./lib/command.php"); 了.
如,你的 login.php 放在
/user/login.php下.而 command 放在 /lib/下的话./user/login.php 就应该 require("../lib/command.php");而 /index.php 就只需要 require("./lib/command.php"); 了.
command页面中这样写
require(getcwd().'/'."../../xxx.php"),