다음 코드가 작동하지 않는 이유는 무엇입니까? 필자는 PHP를 많이 사용하지 못했기 때문에 약간의 시간이 걸렸습니다. 내 connect.php 파일에 사용PHP가 파일을 찾을 수없는 이유는 무엇입니까?
<?php include 'connect.php';
?>
<?php
if (file_exists($Theme_directory."'/".$Theme_current."/header.php"))
{
echo '<p>It exists.</p>';
}
else
{
echo '<p>It does not exist.</p>';
}
?>
변수는 다음과 같습니다 : I 테마/기본/header.php에 존재하는 파일을 인식을 얻을 수있을 때
//CloudBurst Info
//If you mess with these, make sure that you are changing the directories, as well.
$Theme_directory ='themes';
$Theme_current ='default';
, 그럴 게요 그것을 포함 시켜라.
' " '/"는'에 오타처럼 보이는 나 ... 너는''/''을 의미 했습니까? –
아마 경로의 아포스트로피. –