Change relative link paths for included content in PHP

前端 未结 3 1907
日久生厌
日久生厌 2021-01-23 10:11

I have a PHP file at my server root.. index.php .. which include\'s .. DIR/main.php

Now .. DIR/main.php .. has relati

3条回答
  •  有刺的猬
    2021-01-23 10:45

    The picture isn't too clear but you can probably rearrange a few files and use symlinks to solve the problem.

    For your example, you could make a symlink DIR/friend1.php that points to /friend1.php, but you would have to do this for all your files, or just move them.

提交回复
热议问题