How to include file outside document root?

前端 未结 7 460
臣服心动
臣服心动 2020-12-03 01:48

What I want do to is to include \'file1.php\' from \'domain1\' into \'file2.php\' on \'domain2\'. So what I figured I should do is something like this:

file2         


        
相关标签:
7条回答
  • 2020-12-03 02:26

    This works on a couple of machines i manage

    ini_set("include_path",".:/hsphere/local/home/user_name/other_domain.com");
    require "filename.php";
    
    0 讨论(0)
提交回复
热议问题