Possible Duplicate:
failed to open stream: Invalid argumentrequire_once(); 잘못된 인수 오류
// Define the core paths
// Define them as absolute paths to make sure that require_once works as expected
// DIRECTORY_SEPARATOR is a PHP pre-defined constant
// (\ for Windows,/for Unix)
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
defined('SITE_ROOT') ? null :
define('SITE_ROOT', DS.'C:'.DS.'wamp'.DS.'www'.DS.'photo_gallery');
defined('LIB_PATH') ? null : define('LIB_PATH', SITE_ROOT.DS.'includes');
// load config file first
require_once(LIB_PATH.DS.'config.php');
// load basic functions next so that everything after can use them
require_once(LIB_PATH.DS.'functions.php');
// load core objects
require_once(LIB_PATH.DS.'session.php');
require_once(LIB_PATH.DS.'database.php');
// load database-related classes
require_once(LIB_PATH.DS.'user.php');
는 때마다, 나는 내 주소 표시 줄의 로컬 호스트/photo_gallery/공공/관리/index.php를 입력하여이 코드를 실행하기 위해 노력했다. 다음과 같은 오류가 표시됩니다.
Warning: require_once(\C:\wamp\www\photo_gallery\includes\config.php): failed to openstream: Invalid argument in C:\wamp\www\photo_gallery\includes \initialize.php on line 16.
Fatal error: require_once(): Failed opening required '\C: \wamp\www\photo_gallery\includes\config.php'(include_path='.;C:\php\pear') in C:\wamp\www\photo_gallery\includes\initialize.php on line 16
제발, 어떻게해야합니까? 초보자 시동 webdesigner이고이 치명적인 오류가 발생합니다.
정의
사용하는 대신 정의 – Hkachhia
많은 중복의 정의 : http://stackoverflow.com/questions/13759360/fatal-error-require-once-failed-opeining-required-c-wamp-www-photo- 갤러리, http://stackoverflow.com/questions/13759794/require-once-failed-to-openstream-invalid-argument-in-c-wamp-www-photo-gall#13759794 –
답변에 오류가 설명되어 있습니다. 아주. 우리는 사람들을 spoonfeed하지 않습니다, 오류는 파일이 존재하지 않는다는 것입니다. 그러나 지금 당신이 원할 것입니다. –