English 中文(简体)
PHP中的双重包装
原标题:Parsing folder back, in PHP

很奇怪,因为我记得,如果I wan t要回到目录,那么我需要做以下工作:include(......)/ something-in-back-rafter. .pdf”;,但用没有找到文件的信息 throw错。 因此,我准备了一些法典,以检查:

echo "<pre>".print_r(scandir("../"), 1)."</pre>";

I ve executed it in file with location:

<代码>public_html => app => actions => post.php

但上述法典指出,从我的方向来看,有以下几个方面:

Array
(
    [0] => .
    [1] => ..
    [2] => private_html
    [3] => public_html
)

相反,它应当恢复行动。 权利?

这是否奇怪? 或者,我错失了什么? 如果是的话,那么,我怎么能够把我目前的名录中背后的一个(甚至两个)文件列入/开门?

最佳回答

请注意<代码>。 你的分析表明,你的购买力平价目前的工作名录是公开的:html;这是不寻常的。 • 参照当前工作名录。 假设你想从后方采取行动,他说:

include( app/actions/something-in-back-folder.php );
问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签