开发者

How do I browse a php file in a different directory?

I am trying to searc开发者_Go百科h in google for php code that will let me load or browse a file work2.php.

Note that my directory is /home/meria/public_html/work/.

example: /home/meria/public_html/work/code.php

The target file is: /var/work2.php


Maybe you just want to include the file?

<?php
include "/var/work2.php";


If: /home/meria/public_html/work/code.php
going to: /var/work2.php

include "../../../../var/work2.php"; // I might be a little off
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜