| 질문 / 답변 |

Q > 커뮤니티 > 질문 / 답변


[Q Stock] 안녕하세요
  • 글쓴이 : kimsusu 작성일 : 16-08-06 21:43 조회 : 3,817 추천 : 0
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/avinew/www/stock/install.php on line 2

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/hosting_users/avin/www/stock/install.php on line 2

Fatal error: Call to undefined function alert() in /home/hosting_users/avin/www/stock/install.php on line 5



install.php를 호출시 위와같은 에러가 납니다



디렉토리 구조는 아래와같습니다

www - adm
    - bbs
    - data ..
    - stock  <--- 이게 큐스톡입니다.




<?
$g4_path = "../common.php"; // common.php 의 상대 경로
include_once("$g4_path/common.php");

$qst_path = "./common.php"; // 가상주식 common.php 의 상대 경로
include_once("$qst_path/common.php");
?>

여기에서 이렇게설정해주었는데 위와같은에러가납니다.

관리자 16-08-06 22:39
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");

$qst_path = "."; // 가상주식 common.php 의 상대 경로
include_once("$qst_path/common.php");
?>

으로 설정하시기 바랍니다. (해당 변수에는 경로만 들어가야합니다.)