도메인/index.php <- db연결오류 정보
도메인/index.php <- db연결오류본문
도메인/index.php <- db연결오류 들어가면 "db연결 오류"라 나옵니다.
이 설정은 common.php에 있음을 확입합니다. 그런데 왜 그런지 모릅니다.
-------------------------아래는 common.php의 해당 부분----------------
...
include_once("$g4[path]/$dbconfig_file");
$connect_db = sql_connect($mysql_host, $mysql_user, $mysql_password);
$select_db = sql_select_db($mysql_db, $connect_db);
if (!$select_db)
die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><script language='JavaScript'> alert('DB 접속 오류'); </script>");
}
else
{
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
echo <<<HEREDOC
<script language="JavaScript">
alert("DB 설정 파일이 존재하지 않습니다.\\n\\n프로그램 설치 후 실행하시기 바랍니다.");
location.href = "./install/";
</script>
HEREDOC;
exit;
...
----------------------------------------------------------
그런데 "도메인/index.php/" 이렇게 들어가면 제대로 나오되 자바스크립 오류가 나옵니다.
이런 경우 어떻게 해야 하나요?
메시지: 구문 오류
줄: 2
문자: 1
코드: 0
URI: http://s***.org/index.php/js/common.js
메시지: 구문 오류
줄: 2
문자: 1
코드: 0
URI: http://s***.org/index.php/js/ajax.js
메시지: 개체가 필요합니다.
줄: 217
문자: 2
코드: 0
URI: http://s***.org/index.php/
메시지: 구문 오류
줄: 2
문자: 1
코드: 0
URI: http://s***.org/index.php/js/wrest.js
이 설정은 common.php에 있음을 확입합니다. 그런데 왜 그런지 모릅니다.
-------------------------아래는 common.php의 해당 부분----------------
...
include_once("$g4[path]/$dbconfig_file");
$connect_db = sql_connect($mysql_host, $mysql_user, $mysql_password);
$select_db = sql_select_db($mysql_db, $connect_db);
if (!$select_db)
die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><script language='JavaScript'> alert('DB 접속 오류'); </script>");
}
else
{
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
echo <<<HEREDOC
<script language="JavaScript">
alert("DB 설정 파일이 존재하지 않습니다.\\n\\n프로그램 설치 후 실행하시기 바랍니다.");
location.href = "./install/";
</script>
HEREDOC;
exit;
...
----------------------------------------------------------
그런데 "도메인/index.php/" 이렇게 들어가면 제대로 나오되 자바스크립 오류가 나옵니다.
이런 경우 어떻게 해야 하나요?
메시지: 구문 오류
줄: 2
문자: 1
코드: 0
URI: http://s***.org/index.php/js/common.js
메시지: 구문 오류
줄: 2
문자: 1
코드: 0
URI: http://s***.org/index.php/js/ajax.js
메시지: 개체가 필요합니다.
줄: 217
문자: 2
코드: 0
URI: http://s***.org/index.php/
메시지: 구문 오류
줄: 2
문자: 1
코드: 0
URI: http://s***.org/index.php/js/wrest.js
댓글 전체
include_once("$g4[path]/$dbconfig_file");
에서 경로 확인하시구요.. apach설정에서 document.root확인하신다음에 해당 root랑 index 파일우선순위 확인해보세요..
에서 경로 확인하시구요.. apach설정에서 document.root확인하신다음에 해당 root랑 index 파일우선순위 확인해보세요..
잘 모르겠지만 감사합니다. 아파치 설정은 호스팅을 받아서 좀 어려울 것 같은데 가능한가요?
경로 확인을 어떻게 하라는 것인가요?
./dbconfig_file 이런 파일을 보라는 거에요??
경로 확인을 어떻게 하라는 것인가요?
./dbconfig_file 이런 파일을 보라는 거에요??