How to include file outside document root?

前端 未结 7 490
臣服心动
臣服心动 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:14

    Try chmod 777 on a test php file to see if that works, if it does you have permission issues. Also do a simple phpinfo() and see if save mode is on.

提交回复
热议问题