CodeIgniter's index.php
Posted
by 01010011
on Server Fault
See other posts from Server Fault
or by 01010011
Published on 2010-03-19T21:17:44Z
Indexed on
2010/03/19
21:21 UTC
Read the original article
Hit count: 940
codeigniter
|xampp
Hi, Following CodeIngiter's installation instructions, I extracted CodeIgniter into XAMPP's htdocs folder and placed its index.php at the root. When I navigated to the following url
h t t p://127.0.0.1/index.php
I got the following error messages:
Warning: require_once(C:\xampp\htdocs/system/codeigniter/CodeIgniter.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\index.php on line 115 Fatal error: require_once() [function.require]: Failed opening required 'C:\xampp\htdocs/system/codeigniter/CodeIgniter.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\index.php on line 115
When I checked line 115 in the index.php, it stated:
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
Experimenting a little, I put CodeIniter's "system" folder at the root as well, and it worked, providing me access to CodeIgniter's Welcome page, but the instructions did not say to do this.
Experimenting further, when I put back the "system" folder and navigated to the original place where the index.php
h t t p://127.0.0.1/codeigniter_1.7.2/index.php
it worked. But myquestion is, how do I get to the CodeIgniter's welcome page by placing only the index.php in XAMPP's htdocs as instructed by CodeIgniter? Any assistance will be appreciated.
© Server Fault or respective owner