Einzelnen Beitrag anzeigen
  #10  
Alt 25.01.2008, 17:51:11
pixelsetzer pixelsetzer ist offline
Anfänger
 
Registriert seit: Jan 2008
Ort: Berlin
Alter: 36
Beiträge: 30
AW: Website lokal laufen lassen

Ich glaub ich habe den Fehler gefunden richtiges einrücken hilft immer sehr gut beim Fehler suchen ;-)
Probier es einfach mal aus und lösch die Klammer unter
PHP-Code:
// config laden
require_once("config.php"); 
PHP-Code:
<?php /* $Id: base.php 1898 2005-04-02 08:46:05Z sb $ */

// make sure $so is set
if(!isset($so)){
  
trigger_error("\$so ist nicht gesetzt.");
  exit;
}

// fix for cgi interface without PHP_SELF
if (substr($_SERVER['GATEWAY_INTERFACE'], 03) == "CGI") {
  
$pos strrpos($_SERVER['REQUEST_URI'], "?");
  if (
$pos === false) {
    
$_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'];
  } else {
    
$_SERVER['PHP_SELF'] = substr($_SERVER['REQUEST_URI'], 0$pos);
  }
}

// fix for apache1/cgi
$pos strpos($_SERVER['PHP_SELF'], ".php/");
if (
$pos !== false) {
  
// pathinfo da
  
if (!$_SERVER['PATH_INFO']) { 
    
$_SERVER['PATH_INFO'] = substr($_SERVER['PHP_SELF'], $pos 4);
  }
}

// prepend our own include dirs to include path
$vals split(PATH_SEPARATORini_get('include_path'));
array_unshift($valsrealpath($so."lib"));
ini_set('include_path'join(PATH_SEPARATORarray_unique($vals)));
unset(
$vals);

// config laden
require_once("config.php");

///////////// <------------ Wohl eine Klammer zu viel!!

// common.php so früh wie nötig laden
require_once("common.php");
MfG Pixelsetzer

Geändert von pixelsetzer (25.01.2008 um 17:52:05 Uhr)
Mit Zitat antworten