php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2008

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 03.03.2008, 17:20  
Neuer Benutzer
 
Registriert seit: 03.03.2008
Beiträge: 2
Irealty befindet sich auf einem aufstrebenden Ast
Standard Problem mit Installation !!!

Hallo an alle!

HAbe ein kleines problem mit meiner Skript Installation....
es kommt folgende Fehlermeldung:

Parse error: syntax error, unexpected ';' in index.php on line 26

CODE:

<?php


class TimeCalculator
{

public $start_time;
public $caption;

public function TimeCalculator( $caption )
{
$this->start_time = microtime( );
$this->caption = $caption;
}

public function getElapsedTime( )
{
$end_time = microtime( );
$elapsed_time = round( $this->getFloatTime( $end_time ) - $this->getFloatTime( $this->start_time ), 3 );
echo "<b>{$this->caption}</b> was executed in <b>{$elapsed_time}</b> seconds <br>\r\n";
}

public function getFloatTime( $time_str )
{
list( $usec, $sec ) = explode( " ", $time_str );
return ( double ) + ( double );
}

}

error_reporting( E_ALL );
define( "PATH_TO_SYSTEM_CLASS", "system/core/System.php" );
require_once( PATH_TO_SYSTEM_CLASS );
( "system/user-config/DefaultSettings.php" );
( "system/user-config/LocalSettings.php" );
require_once( "admin/lang/".( "LOCALE" ).".php" );
if ( is_null( ( "SITE_URL" ) ) )
{
header( "Location: install.php" );
exit( );
}
else if ( is_readable( "install.php" ) )
{
echo "<p>Your installation is temporarily disabled because the install.php file in the root of your installation is still readable.<br> To proceed, please remove the file or change its mode to make it non-readable for the Apache server process and refresh this page.</p>";
exit( );
}
( );
( );
header( "Content-type:text/html;charset=utf-8" );
if ( ( ) )
{
$uri = ( );
$page_config = ( $uri );
if ( $page_config->PageExists( ) )
{
$page_content = ( $page_config );
echo $page_content;
}
else
{
if ( $page_config->isADirecotryRequestedWithoutASlashAtTheEnd( ) )
{
header( $_SERVER['SERVER_PROTOCOL']." 301 Moved Permanently" );
header( "Location: {$_SERVER['REQUEST_URI']}/" );
echo "The requested resource is located under a different URL: {$_SERVER['REQUEST_URI']}/";
}
else
{
if ( ( $uri ) )
{
$parent_uri = ( $uri );
$page_config = ( $parent_uri );
$passed_parameters_via_uri = substr( $uri, strlen( $parent_uri ) );
$_REQUEST['passed_parameters_via_uri'] = $passed_parameters_via_uri;
$page_content = ( $page_config );
echo $page_content;
}
else
{
header( $_SERVER['SERVER_PROTOCOL']." 404 Not Found" );
echo "404 Not Found";
}
}
}
}
else
{
header( $_SERVER['SERVER_PROTOCOL']." 403 Forbidden" );
echo "The software is not configured to respond to requests of the following host: {$_SERVER['HTTP_HOST']}\n";
}
?>

(ich habe php5 auf dem server eingestellt!)
Wenn mir jemand aus dem Schlamassel helfen könnte währe ich ihm sehr dankbar!


Vielen dank!
Irealty ist offline  
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 03.03.2008, 17:23  
Erfahrener Benutzer
 
Registriert seit: 03.03.2008
Beiträge: 117
Black-Devil befindet sich auf einem aufstrebenden Ast
Black-Devil eine Nachricht über ICQ schicken
Standard

da ist in zeile 26 ein ; zuviel, denke ich mal
Black-Devil ist offline  
Alt 03.03.2008, 17:33  
Neuer Benutzer
 
Registriert seit: 03.03.2008
Beiträge: 2
Irealty befindet sich auf einem aufstrebenden Ast
Standard

habe es weggemacht und dann kommt fehler in line 27
Irealty ist offline  
Alt 03.03.2008, 17:36  
Moderator
 
Benutzerbild von agrajag
 
Registriert seit: 02.10.2006
Beiträge: 3.820
PHP-Kenntnisse:
Fortgeschritten
agrajag wird schon bald berühmt werdenagrajag wird schon bald berühmt werden
Standard

Setzte deinen Quelltext bitte in die Code-Tags des Forums und markerei zeile 26 für uns. Und rück den Quellcode ordentlich ein - sonst sucht man sich ja 'nen Wolf.

was sollen Zeilen wie diese:
Code:
( "system/user-config/DefaultSettings.php" );
deine Methodennamen sind echt ulkig "isADirecotryRequestedWithoutASlashAtTheEnd" ymmd


UND BITTE: lass doch das mit dem Crossposten sein. Muss doch echt nicht sein, dass sich jetzt die Leute hier und auf webmasterpark durch deinen Quellcode wühlen....
agrajag ist offline  
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[Erledigt] Galerie Problem... coraplanet PHP Tipps 2008 4 06.06.2008 13:42
Sessions Problem StephenKing PHP Tipps 2008 3 16.10.2007 08:30
datensätze defekt oder problem mit dem einlesen? Ministry Datenbanken 4 06.07.2006 18:42
Problem bei der Installation des PECL-Moduls oci8 schiff PHP Tipps 2006 0 06.06.2006 13:44
problem!!! PHP Tipps 2006 6 08.02.2006 11:06
[Erledigt] wieder ein Problem bei phpmailer und smtp PHP Tipps 2006 24 07.02.2006 01:07
Problem bei Installation von PECL Modulen /tmp PHP-Fortgeschrittene 3 27.01.2006 19:47
Problem bei Installation von Apache 1.3.33 mit PHP 4.4.0 Server, Hosting und Workstations 3 02.08.2005 11:29
Problem mit Festplatte Off-Topic Diskussionen 4 12.12.2004 12:04
Smarty und PHP-Skript Problem PHP Tipps 2004-2 2 03.12.2004 22:27
Problem mit alter JavaScript-Funktion woods PHP Tipps 2004 1 13.08.2004 13:34
Probleme nach Installation von php4.3.8 auf Win XP PRO IIS 5 PHP Tipps 2004 3 29.07.2004 12:16
[Erledigt] Problem mit Timestamp! PHP Tipps 2004 24 08.06.2004 19:51
Login Problem PHP Tipps 2004 4 04.06.2004 18:46
foreach problem mAy^daY PHP Tipps 2004 3 02.06.2004 20:29

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
irealty the software is not configured to respond to requests of the following host:, \install.php file in the root of your installation is still readable\, .$_server[ installationsfehler, header($_server[\server_protocol\].\ 404 not found\);, header($_server[\server_protocol\].\ 404 not found\), php time_str seconds

Alle Zeitangaben in WEZ +2. Es ist jetzt 18:23 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum