Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/06/2010, 02:46
Avatar de Jask
Jask
 
Fecha de Ingreso: abril-2006
Ubicación: Madrid
Mensajes: 773
Antigüedad: 18 años
Puntos: 15
Error require_once que no se como solucionar

Buenas Que tal ?

Os explico el problema que tengo. Me pasaron una aplicación php que me dijeron que viese que es xD bueno el caso qe me pongo a indagar un poco y por lo que veo la aplicación usa el framework CodeIgniter, lo instalé y todo bien pero sigue sin funciona mi aplicación. Sale este error:

Cita:
Warning: require_once(C:/AppServ/www/app/../system/codeigniter/CodeIgniter.php) [function.require-once]: failed to open stream: No such file or directory in C:\AppServ\www\app\index.php on line 125

Fatal error: require_once() [function.require]: Failed opening required 'C:/AppServ/www/app/../system/codeigniter/CodeIgniter.php' (include_path='.;C:\php5\pear') in C:\AppServ\www\app\index.php on line 125
Y esto está en el index.php

Código PHP:
Ver original
  1. <?php
  2.  
  3.     error_reporting(E_ALL);
  4.  
  5.     $system_folder = "../system";
  6.  
  7. $application_folder = dirname(__FILE__);
  8.  
  9. if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
  10. {
  11.     $system_folder = str_replace("\\", "/", realpath(dirname(__FILE__))).'/'.$system_folder;
  12. }
  13.  
  14. define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
  15. define('FCPATH', __FILE__);
  16. define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
  17. define('BASEPATH', $system_folder.'/');
  18.  
  19.  
  20. if (is_dir($application_folder))
  21. {
  22.     define('APPPATH', $application_folder.'/');
  23. }
  24. else
  25. {
  26.     if ($application_folder == '')
  27.     {
  28.         $application_folder = 'application';
  29.     }
  30.  
  31.     define('APPPATH', BASEPATH.$application_folder.'/');
  32. }
  33.  
  34. if ( ! defined('E_STRICT'))
  35. {
  36.     define('E_STRICT', 2048);
  37. }
  38.  
  39.  
  40. require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
  41. ?>

A ver que puede ser.

Gracias :) de antemano.
__________________
Os iusti meditabitur sapientiam
Si te he ayudado, por qué no un poquito de Karma :) ?