Zend framework godaddy服务器上的Zend错误

Zend framework godaddy服务器上的Zend错误,zend-framework,Zend Framework,我不习惯Zend框架,我正在将我的服务器更改为godaddy主机,并且我已经更改了域名namme。上传文件后,我在www.abc.com上发现了这个错误,而在另一台主机上,它工作正常 我的根目录如下所示: application htdocs library -Zend 请帮助我解决此错误: Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such fi

我不习惯Zend框架,我正在将我的服务器更改为godaddy主机,并且我已经更改了域名namme。上传文件后,我在www.abc.com上发现了这个错误,而在另一台主机上,它工作正常

我的根目录如下所示:

application
htdocs
library
-Zend
请帮助我解决此错误:

Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/37/10289737/html/index.php on line 17
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Application.php' (include_path=':.:/usr/local/php5_3/lib/php') in /home/content/37/10289737/html/index.php on line 17
我的index.php文件如下所示

<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

// Define application environment
defined('APPLICATION_ENV')
  || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ?              getenv('APPLICATION_ENV') : 'production'));

  // Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
 )));

/** Zend_Application */
require_once 'Zend/Application.php';

// Create application, bootstrap, and run
 $application = new Zend_Application(
APPLICATION_ENV,
   APPLICATION_PATH . '/configs/application.ini'
   );

     $options = $application->getOptions();
       $db = Zend_Db::factory($options['resources']['db']['adapter'], array(
'host' => $options['resources']['db']['params']['host'],
 'username' => $options['resources']['db']['params']['username'],
 'password' => $options['resources']['db']['params']['password'],
   'dbname' => $options['resources']['db']['params']['dbname']
     ));

//$db=Zend_Db_Table::getDefaultAdapter();

$db->beginTransaction();
   $sql = file_get_contents(APPLICATION_PATH . '/data/data.sql');
 $db->query($sql);
 $db->commit();

 $application->bootstrap()
   ->run();

您正在尝试将路径添加到include\u路径:

set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));
看,这是你的错误信息:

include_path=':.:/usr/local/php5_3/lib/php'
所以下面的代码不起作用

realpath(APPLICATION_PATH . '/../library')
index.php文件在哪里?在htdocs目录中?
也许godaddy不允许php脚本访问htdocs下的文件?

库/Zend/Application.php中是否有文件?
?因此,我已将index.php文件移到根文件夹中,是否需要将所有文件从htdocs中移走请尝试var_转储(realpath(dirname(uuuuuuuuuuuuuuuuuuuuuuuuuuu文件));在index.php的开头,在这里发布结果。我会尽力帮你修好它;)解析错误:语法错误,在第4行的/home/content/37/10289737/html/index.php中出现意外的T_字符串,您使用的是var_dump()吗?第四名?