Welcome Guest, Not a member yet? Register   Sign In
index.php
#1

I've downloaded XAMPP new version 5.6.8 and CodeIgniter 3.0.0 and copied and pasted the contents of CodeIgniter into the htdocs folder within XAMPP, except the index.php file because that file name already exists, but with different content. I know both files are important to their respective homes but I don't know what should be done. Can anybody help?
Reply
#2

CodeIgniter's index.php is crucial, because all server requests are 'captured' by it, and it's the starting point for all controllers.
On the other hand, XAMPP's index.php is also very important.
What you need to do is create a folder inside the htdocs folder. Give the folder a name that corresponds with your project.
Put all CodeIgniter files and folders in your project's folder.

Let's say your project is called "myproject", then you call your project's home page with this url:
localhost/myproject
Reply
#3

(07-05-2015, 10:07 AM)Wouter60 Wrote: CodeIgniter's index.php is crucial, because all server requests are 'captured' by it, and it's the starting point for all controllers.
On the other hand, XAMPP's index.php is also very important.
What you need to do is create a folder inside the htdocs folder. Give the folder a name that corresponds with your project.
Put all CodeIgniter files and folders in your project's folder.

Let's say your project is called "myproject", then you call your project's home page with this url:
localhost/myproject

Thank you.
Reply
#4

You can also look into the creating a virtual host
If you do that, you won't have to use a subdirectory url : localhost/myproject and can access your project using something like http://myproject.local
http://sawmac.com/xampp/virtualhosts/
Reply
#5

(07-06-2015, 10:51 AM)roopunk Wrote: You can also look into the creating a virtual host
If you do that, you won't have to use a subdirectory url : localhost/myproject and can access your project using something like http://myproject.local
http://sawmac.com/xampp/virtualhosts/

Thank you for that information. I've studied your link and found a virtual host is ideal for when building more than one website but I'm not doing that.
Reply
#6

(07-07-2015, 05:36 AM)christaliise Wrote:
(07-06-2015, 10:51 AM)roopunk Wrote: You can also look into the creating a virtual host
If you do that, you won't have to use a subdirectory url : localhost/myproject and can access your project using something like http://myproject.local
http://sawmac.com/xampp/virtualhosts/

Thank you for that information. I've studied your link and found a virtual host is ideal for when building more than one website but I'm not doing that.

While you might be working with only a single website, today, as a first-time user, you may want to experiment with more than one layout of your site.  That is where the virtual host configuration will be more useful.

Who knows?  In the future you might become a website developer and offer your services to others...
CI 3.1 Kubuntu 19.04 Apache 5.x  Mysql 5.x PHP 5.x PHP 7.x
Remember: Obfuscation is a bad thing.
Clarity is desirable over Brevity every time.
Reply
#7

Additionally, though this may not be the case with XAMPP, some development servers come with some useful development tools pre-loaded into the default website. Even if it doesn't come with tools of its own, you may find some as you go which you'd like to add to your development environment without adding them to the website you're working on.
Reply
#8

@christaliise

https://github.com/ivantcholakov/starter...-edition-3
https://github.com/ivantcholakov/starter...-edition-4

I hate setting a virtual host on starting development of a new project. Here is what I offer: Pickup one of these starter projects of mine, put it on a subdirectory of your Apache and start coding.
Reply
#9

(07-07-2015, 10:34 AM)twpmarketing Wrote:
(07-07-2015, 05:36 AM)christaliise Wrote:
(07-06-2015, 10:51 AM)roopunk Wrote: You can also look into the creating a virtual host
If you do that, you won't have to use a subdirectory url : localhost/myproject and can access your project using something like http://myproject.local
http://sawmac.com/xampp/virtualhosts/

Thank you for that information. I've studied your link and found a virtual host is ideal for when building more than one website but I'm not doing that.

While you might be working with only a single website, today, as a first-time user, you may want to experiment with more than one layout of your site.  That is where the virtual host configuration will be more useful.

Who knows?  In the future you might become a website developer and offer your services to others...

Thanks twpmarketing for your input of which I have noted.
Reply
#10

(07-07-2015, 01:15 PM)mwhitney Wrote: Additionally, though this may not be the case with XAMPP, some development servers come with some useful development tools pre-loaded into the default website. Even if it doesn't come with tools of its own, you may find some as you go which you'd like to add to your development environment without adding them to the website you're working on.

Thanks mwhitney for your input of which I have noted.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB