Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/ghh_gosunglee/www/g5/_common.php on line 2
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/ghh_gosunglee/www/g5/_common.php on line 2
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/ghh_gosunglee/www/g5/_common.php on line 2
=======================================
위 에라메세지가 뜨는데
_common.php 에는 내용이
Copy
<?php
include_once('./common.php');
?>
이거 밖에 없거든요...
도대체 뭐가 잘못된건지요...?
어제 밤새워 경로를 이리저리 바꿔봤는데도 계속 마찬가지네요.. ㅠㅜ
|
답변 5개 / 댓글 3개
만약 A.php에 _common.php 인크루드한다고 가정하고
A.php 상단에 _common.php 파일을 인크루드 하셨잖아요
그런데 _common.php 파일은 또 common.php을 가져옵니다.
그럼 기준은 A.php 파일을 기준으로 common.php 을 찾아야 합니다.
a.php 파일과 common.php 파일이 같은 폴더에 있나요?
답변에 대한 댓글 2개
답변을 작성하려면 로그인이 필요합니다.

<?php
include_once('common.php');
?>
[/code]
위와같이 써보세요