include_once("./_common.php");
include_once("./lib/common.lib.php");
$sql_1st = "INSERT INTO ....... " ;
sql_query($sql_1st);
아래와 같이 오류나는데...인쿨루드를 하였는데 이상하네요
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/abc7/public_html/uc.php:3) in /home/abc7/public_html/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /home/abc7/public_html/uc.php:3) in /home/abc7/public_html/common.php on line 8
PHP Fatal error: Call to undefined function mysql_connect() in /home/abc7/public_html/lib/common.lib.php on line 1525
Fatal error: Call to undefined function mysql_connect() in /home/abc7/public_html/lib/common.lib.php on line 1525
답변 2개
include 는 _common.php 만 하면 됩니다.
common.php 파일에 (/lib/common.lib.php 포함..) 각종 라이브파일이 모두 include 되기 때문입니다.
혹 동일 디렉토리에 _common.php 가 없다면, /bbs/_common.php 파일을 참고하여 _common.php 파일을 생성해주면 됩니다.
----------------
include_once("./_common.php");
include_once("./lib/common.lib.php");
=>
include_once("./_common.php");
답변을 작성하려면 로그인이 필요합니다.