opendir()함수에서여..
본문
opendir() 함수에서 인자값으로 path가 들어가는데여..< br>
절대경로가 들어갈순없나여?< br>
예를들어 <br>
http://아이피/폴더/폴더 <br>
이런식이나 <br>
ftp://폴더/폴더/< br>
이런식으루여..< br>
/home/user/폴더/< br>
이런식으로는 가능한데 아이피나 도메인이 들어가면 에러나는군여..< br>
아시는분 꼭좀 알려주세여..< br>
걍 지나가지 마시구여....^^
답변 1
시스템내의 directory가 아닌경우 false를 return 하는것 같네요 <br>
<br>
아래는 메뉴얼에서 긁어왔습니다. <br>
<br>
If path is not a valid directory or the directory can not be opened due to permission restrictions or filesystem errors, opendir() returns FALSE and generates a PHP error. You can suppress the error output of opendir() by prepending `@' to the front of the function name. <br>
<br>
<br>
아래는 메뉴얼에서 긁어왔습니다. <br>
<br>
If path is not a valid directory or the directory can not be opened due to permission restrictions or filesystem errors, opendir() returns FALSE and generates a PHP error. You can suppress the error output of opendir() by prepending `@' to the front of the function name. <br>
<br>
답변을 작성하시기 전에 로그인 해주세요.