I did mistake : If I do : "echo $_ENV['DOCUMENT_ROOT'];" ON LOCAL VERSION :
d:/work/www If I do : "echo $_ENV['DOCUMENT_ROOT'];" online /home/iciservi/www/dir/app/webroot If I modify line 392 of dispatcher class, it work, but it not a good solution. First because I don't understand why and second because it not practice when I do update of cake. function baseUrl() { $htaccess = null; $base = $this->admin; $this->webroot = ''; if (defined('BASE_URL')) { $base = BASE_URL.$this->admin; } $docRoot = env('DOCUMENT_ROOT'); $scriptName = env('PHP_SELF'); $r = null; // line 392 if (preg_match('/'.APP_DIR.'\\'.DS.WEBROOT_DIR.'/', $docRoot)) if (false) { $this->webroot = '/'; if (preg_match('/^(.*)\/index\.php5$/', $scriptName, $r)) { if(!empty($r[1])) { return $base.$r[1]; } } } else { if (defined('BASE_URL')) { $webroot = setUri(); $htaccess = preg_replace('/(?:'.APP_DIR.'(.*)|index\\.php5(.*))/i', '', $webroot).APP_DIR.'/'.WEBROOT_DIR.'/'; } if (preg_match('/^(.*)\\/'.APP_DIR.'\\/'.WEBROOT_DIR.'\\/index\\.php5$/', $scriptName, $regs)) { if(APP_DIR === 'app') { $appDir = null; } else { $appDir = '/'.APP_DIR; } !empty($htaccess)? $this->webroot = $htaccess : $this->webroot = $regs[1].$appDir.'/'; return $base.$regs[1].$appDir; } elseif (preg_match('/^(.*)\\/'.WEBROOT_DIR.'([^\/i]*)|index\\\.php5$/', $scriptName, $regs)) { !empty($htaccess)? $this->webroot = $htaccess : $this->webroot = $regs[0].'/'; return $base.$regs[0]; } else { !empty($htaccess)? $this->webroot = $htaccess : $this->webroot = '/'; return $base; } } return $base; } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---