Welcome Guest, Not a member yet? Register   Sign In
Open Blog 1.0.0 released
#73

[eluser]kana[/eluser]
[quote author="Kami_" date="1238782662"]Sorry for the late response.
I meant if you could post your index.php file located in the root folder, not the constants.php.
.[/quote]

below is /index.php.

I do see lots of "Punto de InterogaciĆ³n Inicial" (upsidedown question marks) in BBEDIT and that the file is created with Windows line feeds...

Then I relpaced it with an /index.php from a download of CI 1.7.1, and the error is the same... so the problem must be elsewhere...

The installer worked perfectly... Is that all custom code?

thanks


Code:
<?php
/*
|---------------------------------------------------------------
| PHP ERROR REPORTING LEVEL
|---------------------------------------------------------------
|
| By default CI runs with error reporting set to ALL.  For security
| reasons you are encouraged to change this when your site goes live.
| For more info visit:  http://www.php.net/error_reporting
|
*/
    error_reporting(E_ALL);

/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
|
| This variable must contain the name of your "system" folder.
| Include the path if the folder is not in the same  directory
| as this file.
|
| NO TRAILING SLASH!
|
*/
    $system_folder = "system";

/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
|
| If you want this front controller to use a different "application"
| folder then the default one you can set its name here. The folder
| can also be renamed or relocated anywhere on your server.
| For more info please see the user guide:
| http://ellislab.com/codeigniter/user-guide/general/managing_apps.html
|
|
| NO TRAILING SLASH!
|
*/
    $application_folder = "application";

/*
|===============================================================
| END OF USER CONFIGURABLE SETTINGS
|===============================================================
*/


/*
|---------------------------------------------------------------
| SET THE SERVER PATH
|---------------------------------------------------------------
|
| Let's attempt to determine the full-server path to the "system"
| folder in order to reduce the possibility of path problems.
| Note: We only attempt this if the user hasn't specified a
| full server path.
|
*/
if (strpos($system_folder, '/') === FALSE)
{
    if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
    {
        $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
    }
}
else
{
    // Swap directory separators to Unix style for consistency
    $system_folder = str_replace("\\", "/", $system_folder);
}

/*
|---------------------------------------------------------------
| DEFINE APPLICATION CONSTANTS
|---------------------------------------------------------------
|
| EXT        - The file extension.  Typically ".php"
| FCPATH    - The full server path to THIS file
| SELF        - The name of THIS file (typically "index.php)
| BASEPATH    - The full server path to the "system" folder
| APPPATH    - The full server path to the "application" folder
|
*/
define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', $system_folder.'/');
define('ROOTPATH', realpath(dirname(__FILE__)));

if (is_dir($application_folder))
{
    define('APPPATH', $application_folder.'/');
}
else
{
    if ($application_folder == '')
    {
        $application_folder = 'application';
    }

    define('APPPATH', BASEPATH.$application_folder.'/');
}

/*
|---------------------------------------------------------------
| LOAD THE FRONT CONTROLLER
|---------------------------------------------------------------
|
| And away we go...
|
*/

if (is_dir('install/') && file_exists('install/index.php'))
{
    header("Location: install/index.php");
    die();
}
else if (!file_exists(APPPATH.'config/config'.EXT) || !file_exists(APPPATH.'config/database'.EXT))
{
    echo '<h1>Something went wrong</h1>';
    echo '<p>Missing config files (config.php, database.php) and installer.</p>
    <strong>Please re-upload the files and run the <a href="install/index.php">installer</a>.</strong>';
}
else
{
    require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
}

/* End of file index.php */
/* Location: ./index.php */


Messages In This Thread
Open Blog 1.0.0 released - by El Forum - 01-13-2009, 08:16 AM
Open Blog 1.0.0 released - by El Forum - 01-13-2009, 12:13 PM
Open Blog 1.0.0 released - by El Forum - 01-13-2009, 12:29 PM
Open Blog 1.0.0 released - by El Forum - 01-13-2009, 02:57 PM
Open Blog 1.0.0 released - by El Forum - 01-13-2009, 08:10 PM
Open Blog 1.0.0 released - by El Forum - 01-14-2009, 01:06 AM
Open Blog 1.0.0 released - by El Forum - 01-14-2009, 07:41 AM
Open Blog 1.0.0 released - by El Forum - 01-15-2009, 04:37 AM
Open Blog 1.0.0 released - by El Forum - 01-15-2009, 04:52 AM
Open Blog 1.0.0 released - by El Forum - 01-15-2009, 04:57 AM
Open Blog 1.0.0 released - by El Forum - 01-15-2009, 06:08 AM
Open Blog 1.0.0 released - by El Forum - 01-15-2009, 07:09 AM
Open Blog 1.0.0 released - by El Forum - 01-15-2009, 08:22 AM
Open Blog 1.0.0 released - by El Forum - 01-16-2009, 03:23 AM
Open Blog 1.0.0 released - by El Forum - 01-16-2009, 04:09 PM
Open Blog 1.0.0 released - by El Forum - 01-16-2009, 05:59 PM
Open Blog 1.0.0 released - by El Forum - 01-17-2009, 01:25 AM
Open Blog 1.0.0 released - by El Forum - 01-17-2009, 05:29 PM
Open Blog 1.0.0 released - by El Forum - 01-17-2009, 05:57 PM
Open Blog 1.0.0 released - by El Forum - 01-18-2009, 02:25 AM
Open Blog 1.0.0 released - by El Forum - 01-18-2009, 05:59 AM
Open Blog 1.0.0 released - by El Forum - 01-18-2009, 02:46 PM
Open Blog 1.0.0 released - by El Forum - 01-18-2009, 03:58 PM
Open Blog 1.0.0 released - by El Forum - 01-21-2009, 01:30 AM
Open Blog 1.0.0 released - by El Forum - 01-23-2009, 01:16 PM
Open Blog 1.0.0 released - by El Forum - 01-24-2009, 01:35 AM
Open Blog 1.0.0 released - by El Forum - 01-28-2009, 10:19 PM
Open Blog 1.0.0 released - by El Forum - 01-29-2009, 12:30 AM
Open Blog 1.0.0 released - by El Forum - 01-29-2009, 02:32 AM
Open Blog 1.0.0 released - by El Forum - 01-29-2009, 02:41 AM
Open Blog 1.0.0 released - by El Forum - 01-29-2009, 03:10 AM
Open Blog 1.0.0 released - by El Forum - 01-29-2009, 04:23 AM
Open Blog 1.0.0 released - by El Forum - 01-29-2009, 11:23 AM
Open Blog 1.0.0 released - by El Forum - 01-29-2009, 05:14 PM
Open Blog 1.0.0 released - by El Forum - 01-29-2009, 06:36 PM
Open Blog 1.0.0 released - by El Forum - 01-30-2009, 02:39 AM
Open Blog 1.0.0 released - by El Forum - 01-30-2009, 12:50 PM
Open Blog 1.0.0 released - by El Forum - 01-30-2009, 01:07 PM
Open Blog 1.0.0 released - by El Forum - 01-30-2009, 01:58 PM
Open Blog 1.0.0 released - by El Forum - 01-30-2009, 02:07 PM
Open Blog 1.0.0 released - by El Forum - 01-31-2009, 05:04 PM
Open Blog 1.0.0 released - by El Forum - 02-01-2009, 01:29 AM
Open Blog 1.0.0 released - by El Forum - 02-01-2009, 08:01 AM
Open Blog 1.0.0 released - by El Forum - 02-01-2009, 08:25 AM
Open Blog 1.0.0 released - by El Forum - 02-11-2009, 06:04 PM
Open Blog 1.0.0 released - by El Forum - 02-11-2009, 11:33 PM
Open Blog 1.0.0 released - by El Forum - 02-13-2009, 01:49 AM
Open Blog 1.0.0 released - by El Forum - 02-13-2009, 10:02 AM
Open Blog 1.0.0 released - by El Forum - 02-15-2009, 04:37 PM
Open Blog 1.0.0 released - by El Forum - 02-21-2009, 02:08 AM
Open Blog 1.0.0 released - by El Forum - 03-01-2009, 05:46 AM
Open Blog 1.0.0 released - by El Forum - 03-01-2009, 04:54 PM
Open Blog 1.0.0 released - by El Forum - 03-01-2009, 05:57 PM
Open Blog 1.0.0 released - by El Forum - 03-01-2009, 11:50 PM
Open Blog 1.0.0 released - by El Forum - 03-06-2009, 02:00 AM
Open Blog 1.0.0 released - by El Forum - 03-06-2009, 06:29 PM
Open Blog 1.0.0 released - by El Forum - 03-07-2009, 11:07 AM
Open Blog 1.0.0 released - by El Forum - 03-13-2009, 10:10 AM
Open Blog 1.0.0 released - by El Forum - 03-13-2009, 10:24 AM
Open Blog 1.0.0 released - by El Forum - 03-14-2009, 02:38 AM
Open Blog 1.0.0 released - by El Forum - 03-25-2009, 01:55 PM
Open Blog 1.0.0 released - by El Forum - 03-25-2009, 01:59 PM
Open Blog 1.0.0 released - by El Forum - 03-25-2009, 02:02 PM
Open Blog 1.0.0 released - by El Forum - 03-25-2009, 02:16 PM
Open Blog 1.0.0 released - by El Forum - 03-26-2009, 03:38 AM
Open Blog 1.0.0 released - by El Forum - 03-26-2009, 05:12 AM
Open Blog 1.0.0 released - by El Forum - 03-29-2009, 04:38 PM
Open Blog 1.0.0 released - by El Forum - 03-29-2009, 10:45 PM
Open Blog 1.0.0 released - by El Forum - 03-30-2009, 02:09 AM
Open Blog 1.0.0 released - by El Forum - 03-30-2009, 02:19 AM
Open Blog 1.0.0 released - by El Forum - 03-30-2009, 02:32 AM
Open Blog 1.0.0 released - by El Forum - 04-03-2009, 07:17 AM
Open Blog 1.0.0 released - by El Forum - 04-03-2009, 01:43 PM
Open Blog 1.0.0 released - by El Forum - 04-04-2009, 02:57 AM
Open Blog 1.0.0 released - by El Forum - 04-04-2009, 06:47 AM
Open Blog 1.0.0 released - by El Forum - 04-04-2009, 12:09 PM
Open Blog 1.0.0 released - by El Forum - 04-07-2009, 12:57 AM
Open Blog 1.0.0 released - by El Forum - 04-07-2009, 01:42 AM
Open Blog 1.0.0 released - by El Forum - 04-07-2009, 02:30 AM
Open Blog 1.0.0 released - by El Forum - 04-07-2009, 02:50 AM
Open Blog 1.0.0 released - by El Forum - 04-07-2009, 02:52 AM
Open Blog 1.0.0 released - by El Forum - 04-08-2009, 08:24 AM
Open Blog 1.0.0 released - by El Forum - 04-08-2009, 09:56 AM
Open Blog 1.0.0 released - by El Forum - 04-08-2009, 03:31 PM
Open Blog 1.0.0 released - by El Forum - 04-08-2009, 10:52 PM
Open Blog 1.0.0 released - by El Forum - 04-08-2009, 11:30 PM
Open Blog 1.0.0 released - by El Forum - 04-09-2009, 07:02 AM
Open Blog 1.0.0 released - by El Forum - 04-10-2009, 01:24 AM
Open Blog 1.0.0 released - by El Forum - 04-10-2009, 09:33 AM
Open Blog 1.0.0 released - by El Forum - 04-10-2009, 01:41 PM
Open Blog 1.0.0 released - by El Forum - 04-11-2009, 11:09 AM
Open Blog 1.0.0 released - by El Forum - 04-12-2009, 06:52 AM
Open Blog 1.0.0 released - by El Forum - 04-24-2009, 08:37 AM
Open Blog 1.0.0 released - by El Forum - 05-29-2009, 08:34 PM
Open Blog 1.0.0 released - by El Forum - 05-30-2009, 01:40 AM
Open Blog 1.0.0 released - by El Forum - 05-30-2009, 01:48 AM
Open Blog 1.0.0 released - by El Forum - 05-30-2009, 09:19 AM
Open Blog 1.0.0 released - by El Forum - 05-30-2009, 11:00 AM
Open Blog 1.0.0 released - by El Forum - 05-30-2009, 03:36 PM
Open Blog 1.0.0 released - by El Forum - 05-30-2009, 04:37 PM
Open Blog 1.0.0 released - by El Forum - 05-31-2009, 05:40 AM
Open Blog 1.0.0 released - by El Forum - 05-31-2009, 06:06 AM
Open Blog 1.0.0 released - by El Forum - 05-31-2009, 06:13 AM
Open Blog 1.0.0 released - by El Forum - 06-05-2009, 07:46 PM
Open Blog 1.0.0 released - by El Forum - 06-05-2009, 10:02 PM
Open Blog 1.0.0 released - by El Forum - 06-07-2009, 02:28 AM
Open Blog 1.0.0 released - by El Forum - 09-17-2009, 08:50 AM
Open Blog 1.0.0 released - by El Forum - 09-17-2009, 03:52 PM
Open Blog 1.0.0 released - by El Forum - 09-18-2009, 08:01 AM
Open Blog 1.0.0 released - by El Forum - 09-26-2009, 04:40 PM
Open Blog 1.0.0 released - by El Forum - 09-27-2009, 03:50 PM
Open Blog 1.0.0 released - by El Forum - 05-22-2010, 06:58 AM
Open Blog 1.0.0 released - by El Forum - 05-29-2010, 01:09 PM
Open Blog 1.0.0 released - by El Forum - 05-29-2010, 03:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB