Jump to content

Recommended Posts

Hello,

I have a problem and basic php knownledge smile.gif

To make a log story short: I received a cakePHP page with a SQL database over an email. cakePHP version  1.3.13

I uploaded to xampp (localhost) but of course the site didnt work. I configured the database.php with the root user and password.

 

 

my index.php

<?php

    define('APP_DIR', 'app');
    define('DS', DIRECTORY_SEPARATOR);
    define('ROOT', dirname(__FILE__));
    define('WEBROOT_DIR', 'webroot');
    define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);

    if (!defined('CAKE_CORE_INCLUDE_PATH')) {
        define('CAKE_CORE_INCLUDE_PATH', ROOT);
    }


    if (function_exists('ini_set')) {
        ini_set('include_path',
            ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH
            . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS
        );
        define('APP_PATH', null);
        define('CORE_PATH', null);
    } else {
        define('APP_PATH', ROOT . DS . APP_DIR . DS);
        define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
    }
    require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
    ?>

error code :

 

Warning: include(cake\bootstrap.php): failed to open stream: No such file or directory in C:\xampp\htdocs\prj_financeiro\app\webroot\index.php on line 79

Warning: include(): Failed opening 'cake\bootstrap.php' for inclusion (include_path='E:\Arquivos de programas\EasyPHP5.3.0\www\cakephp\prj_financeiro;C:\xampp\htdocs\prj_financeiro\app\;.;C:\xampp\php\PEAR') in C:\xampp\htdocs\prj_financeiro\app\webroot\index.php on line 79

Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in C:\xampp\htdocs\prj_financeiro\app\webroot\index.php on line 80

 

Any idea how to fix it? 

 

Thanks

Edited by hendrikhe
Link to comment
https://forums.phpfreaks.com/topic/279865-cakephp-xampp/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.