테스트 사이트 - 개발 중인 베타 버전입니다

상대경로에 대해 궁금합니다 ㅠㅜ. 채택완료

디스달 11년 전 조회 5,788

 

formmail.php를 실행시키니 이런 에러가 뜨네요.

 

Warning: include_once(/lib/mailer.lib.php): failed to open stream: No such file or directory in /home/busanmil10/www/board/formmail.php on line 2 Warning: include_once(): Failed opening '/lib/mailer.lib.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/busanmil10/www/board/formmail.php on line 2 Fatal error: Call to undefined function get_token() in /home/busanmil10/www/board/formmail.php on line 20

 

formmail.php 파일에는 이런 경로로 되어 있습니다. 

<?
include_once("$g4[path]/lib/mailer.lib.php");

?>

 

어떻게 경로를 고쳐야 할까요? ㅠㅜ.

 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 3개

채택된 답변
+20 포인트
굿
11년 전

./lib/mailer.lib.php <- 앞에 점하나 붙이세요..현재 formmail.php 위치한 경로에서 같은 위치(.)에 있는

./lib를 상대경로로 참조해야합니다. 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

11년 전
formmail.php 처음 부분 설정을 바르게 했는지 봐야겠네요
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

11년 전

경로가 board/formmail.php -> bbs/formmail.php로 바꿔보세요 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인