Welcome Guest, Not a member yet? Register   Sign In
index.php, system_folder variable and multisite installation on windows
#1

[eluser]Unknown[/eluser]
I use Windows in my home and works station (producer server will use linux Smile). My CodeIgniter instalation is:

“C:\www-root\codeigniter\” that contain the kernel of CodeIgniter.

“C:\www-root\www.example.com\” that contain the index.php file and the content of application folder. See demo.javierav.com/CI001.jpg for image of folders.

In index.php I have:

$system_folder = “c:\www-root\codeigniter”;
$application_folder = “c:\www-root\www.example.com”;

If I access to http://localhost/www.example.com url I will obtain the following php error:

“Fatal error: require_once() [function.require]: Failed opening required ‘C:\www-root\www.example.com/c:\www-root\codeigniter/codeigniter/CodeIgniter.php’ (include_path=’.;C:\Archivos de programa\xampp\php\pear\’) in C:\www-root\www.example.com\index.php on line 133”

Where is the problem? In index.php on line 65 we have this: “if (strpos($system_folder, ‘/’) === FALSE)” and would have to have “if (strpos($system_folder, ‘/’) === FALSE AND strpos($system_folder, ‘\\’) === FALSE)”

With this modification, my installation works fine. Is this a bug?

Regards,

Javier Aranda

P.D Sorry for my bad english. I'm spanish.


Messages In This Thread
index.php, system_folder variable and multisite installation on windows - by El Forum - 01-25-2008, 09:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB