3
$file_name = "x:/htdocs/host/sales_documents/testvilkår, webhotell og domenenavn_2ccda.pdf";
if(!file_exists($file_name))
{
echo "<h2>404 Error</h2>";
exit;
}
파일 이름이 유효한 파일이며, 또한 실제로 존재 외국어 문자를 가진 파일 이름을 false를 반환하지만, 여전히 file_exists
는 false
을 반환합니다.
이유가 무엇인지 말해 줄 수 있습니까?PHP의 file_exists는
유닉스 또는 Windows? 시도 백 슬래시? –
{}로 파일 이름을 묶으십시오. – bksi
해결책을 찾았습니까? 나는 ","과 나 옆에 공백이있어서 나를 괴롭히는 비슷한 문제가있다. – Gaston