작동하지 않습니다, 난라는 파일이 exists.php있는 파일이 존재하는지 확인하기 위해이 코드 :기능 file_exists 내 웹 루트에서
$filename = 'http://www.domain.nl/contact.php';
if (file_exists($filename))
{
echo "Document ".$filename." found...<br><br><br>";
}
else
{
echo "Document ".$filename." not found...<br><br><br>";
};
파일이 contact.php은 존재 하는가 exists.php 호출 할 때 그러나 그는 에코 :이 코드를 변경하는 경우 문서가
를 찾을 수 없습니다
$filename = 'contact.php';
if (file_exists($filename))
{
echo "Document ".$filename." found...<br><br><br>";
}
else
{
echo "Document ".$filename." not found...<br><br><br>";
};
를 그 다음은 에코 : 문서가 발견했다.
절대 경로와 함께 작동하지 않는 이유는 무엇입니까?
설명서 읽기 http://www.php.net//manual/en/function.file-exists.php –
가능한 해결책은 http 요청입니다 컬)을 입력하고 http 상태 코드가! = 404 ... –
인지 확인하십시오. 도메인 간 파일이 없으면 – HackerManiac