서버이전후 에러문구 문의드립니다. 정보
서버이전후 에러문구 문의드립니다.본문
웹호스팅을 받다가 독립서버를 신청하여 세팅 후 이전했습니다.
글쓰기 할 때 다음과 같은 에러가 잠깐 보였다 사라지는데요.
설정에 문제가 있는걸까요?
notice:use of undefined constant title -assumed 'title' in /home/hosting_user/111/www/bbs/write_update.php on line 2
nitice : Undefined variable : wr_subject in /home/hosting_user/111/www/bbs/write_update.php on line 2
글쓰기 할 때 다음과 같은 에러가 잠깐 보였다 사라지는데요.
설정에 문제가 있는걸까요?
notice:use of undefined constant title -assumed 'title' in /home/hosting_user/111/www/bbs/write_update.php on line 2
nitice : Undefined variable : wr_subject in /home/hosting_user/111/www/bbs/write_update.php on line 2
댓글 전체
$g4[title] = $wr_subject . "글입력";
include_once("./_common.php");
write_update.php 파일에 2번째 라인이 위처럼되어있나요?
include_once("./_common.php");
write_update.php 파일에 2번째 라인이 위처럼되어있나요?

2라인에 오류가 있다는 말이니 2라인을 확인하세요
<?
$g4[title] = $wr_subject . "글입력";
include_once("./_common.php");
이렇게 되어 있어요.
$g4[title] = $wr_subject . "글입력";
include_once("./_common.php");
이렇게 되어 있어요.

4.0.6부터는 변수를 정의하지 않은 상태에서 그냥 쓰면 이러한 메시지가 뜰 수가 있습니다.
일단 php.ini를 열어서요
error_reporting= E_ALL; display all errors, warnings and notices
라고 써있는 줄을
error_reporting= E_ALL & ~(E_NOTICE | E_USER_NOTICE ); display all errors, warnings and notices
라고 바꾸시고 아파치나 iis를 재시작해야 하는데 만일 php.ini 바꾸기가 어려우시다면
$g4[title] = $wr_subject . "글입력"; 줄을
include_once("./_common.php"); 이 줄 아래로 내려서 확인해 보시면 될것같습니다.
일단 php.ini를 열어서요
error_reporting= E_ALL; display all errors, warnings and notices
라고 써있는 줄을
error_reporting= E_ALL & ~(E_NOTICE | E_USER_NOTICE ); display all errors, warnings and notices
라고 바꾸시고 아파치나 iis를 재시작해야 하는데 만일 php.ini 바꾸기가 어려우시다면
$g4[title] = $wr_subject . "글입력"; 줄을
include_once("./_common.php"); 이 줄 아래로 내려서 확인해 보시면 될것같습니다.
감사합니다.!
우선 $g4[title] = $wr_subject . "글입력"; 줄을 아래로 내려서 확인했습니다.
우선 $g4[title] = $wr_subject . "글입력"; 줄을 아래로 내려서 확인했습니다.
제가 답변 채택을 잘못했어요. 불량학생님을 선택해야 하는데 죄송합니다.
$g4[title] = ~~~ --> $g4['title'] = ~~ 따옴표로 깜싸기 해보세요
답변 감사합니다.