작동하지 I가 나의 현재 디렉토리에 images
라는 폴더하지만 난 다음 오류 얻을 아래의 코드를 실행하려고하면 나는했습니다PHP를 위해 scandir는 상대 경로
PHP Warning: scandir(../images,../images): The system cannot find the file specified. (code: 2) in C:\Program Files (x86)\Ampps\www\dev\php\recolor_png\dir.php on line 4
<?php
$dir = "../images";
$a = scandir($dir);
print_r($a);
을 경로의 모든 변화는 내가 (images, /images/, "images", 'images'
등하지만 기쁨 생각할 수있는 시도.
var_dump (is_dir('/images'));
도 제공 false
도와주세요.
무엇이 var_dump (__ DIR __. '/ images'); 그것은 올바른 길입니까? – Marcel