1
我写了一个脚本,它在我的本地服务器上完美工作。Zend项目的问题
我上传它在我的服务器上,现在我得到这个问题
解析错误:语法错误,意外“{”在/homepages/46/d319011794/htdocs/suche/public/index.php上线18
的,这里是我的index.php
<?php
error_reporting(E_ALL || E_STRICT);
define('APPLICATION_PATH', realpath(dirname(__FILE__)) . '/../application');
set_include_path(
APPLICATION_PATH . '/../library'
. PATH_SEPARATOR . '../application/models'
. PATH_SEPARATOR . get_include_path()
);
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
new App_Connect();
try
{ //Line 18
require '../application/bootstrap.php';
}
catch(Exception $exception)
{
echo "<html><body>Fehler beim bootstraping";
if(defined('APPLICATION_ENVIROMENT') && APPLICATION_EVIROMENT != 'production')
{
echo "<br><br>" . $exception->getMessage() . "<br>"
. "<div align='left'>Stack Trace: "
. "<pre> " . $exception->getTraceAsString() . "</pre></div>";
}
echo "</body></html>";
exit(1);
}
Zend_Controller_Front::getInstance()->dispatch();
这是一个Zend项目...所以可能有些人知道该怎么办...
谢谢,这是问题! – 2010-04-01 08:56:27