이 오류가 나타납니다위의 폴더에 .php 파일을 포함 시키십시오.
Warning: include(../config.php) [function.include]: failed to open stream: No such file or directory in /home/soizastu/public_html/cms/happy-api/retrieve.php on line 2
Warning: include() [function.include]: Failed opening '../config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/soizastu/public_html/cms/happy-api/retrieve.php on line 2
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'soizastu'@'localhost' (using password: NO) in /home/soizastu/public_html/cms/happy-api/retrieve.php on line 6
Error connecting to database.
기본적으로 CMS 폴더에있는 config.php
include "../config.php";
트릭을 할 것이라고 생각하지만 dosent 나타납니다.
내가 당신의 config.php 파일이 필요한 가정 --dbconfig.php
add_dbconfig.php | --add_dbconfig.php | --includes 데이터베이스에 연결할 수 있습니다. 이 경우'include()'대신'require()'를 사용하는 것을 고려해야합니다. 이것은 include와 같은 일을하지만 실패 할 경우 치명적인 오류로 스크립트를 중지시킵니다. – greg0ire