Welcome Guest, Not a member yet? Register   Sign In
CI + Eclipse + XAMPP - View edits locally?

Hi guys,

I've been scouring the forums and google but have yet to find the solution to my problem. I hope you all can help!

I've been developing a codeigniter site and it is working fine on the Apache webserver. What I'm trying to accomplish is to take the source files, download them locally (windows box) and make my development edits on my local machine and test those changes locally. (since the website is currently live).

What I've done is:
Installed XAMPP (apache, mysql running fine)
Installed Eclipse PDT
Copied the system and application folder into: c:\xampp\htaccess\codeigniter
++++File structure is: C:\xampp\htaccess\codeigniter\application

Followed these instructions (http://www.andreabaccega.com... and created the two separate projects

I can view the files in Eclipse and edit them, no problem. When I click "Run" -> "Run" on a view that I was currently editing I receive the error "Program cannot display the webpage".

I'm having extreme difficulty figuring out how to view the changes I've made locally without uploading it to the webserver.

Any help is much appreciated!

view it with your browser
xampp 1.7.4 not worked for me, error everywhere
i recommended ver 1.7.3


Thanks for your reply! When i try I receive the following error:

Warning: require_once(C:/Users/Allen/Documents/Dropbox/Omega Reports/Omega Website/EclipseCode/system/core/CodeIgniter.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\codeigniter\index.php on line 201

Fatal error: require_once() [function.require]: Failed opening required 'C:/Users/Allen/Documents/Dropbox/Omega Reports/Omega Website/EclipseCode/system/core/CodeIgniter.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\codeigniter\index.php on line 201

Any other suggestions guys?

I use xampp also and works fine for me.
Make new folder in htdocs and name it anything u want and put codeigniter files in it. Then access it http://localhost/yourfoldername/

Just an update, I've been going through a php book and following all of the book's examples. I made a new file under htdocs called "test" and have been running the files from\test\xxx.php
That is working fine.

So it seems that it may be a setting within my code igniter config file? As I mentioned in an above post, all of the source files (code igniter files included) were downloaded off of our webserver where the app is running fine.

Any suggestions on places to look where a setting may need to be changed?

Hey guys,

I was editing the login.php file (of the site that wasn't working). Clicked Run->Run

And this is what I got:

(it errored out originally when it was http://localhost so I changed it to be and still error'd)

Theme © iAndrew 2016 - Forum software by © MyBB