开发者

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

开发者 https://www.devze.com 2023-03-08 00:37 出处:网络
I am trying to searc开发者_Go百科h in google for php code that will let me load or browse a file work2.php.

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

精彩评论

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