zend-framework – 警告:require_once(Zend / Application.php)
发布时间:2020-12-13 21:49:35 所属栏目:PHP教程 来源:网络整理
导读:我的索引文件就是这个 ?phpini_set( "short_open_tag",1 );ini_set( "display_errors",1 );// Define path to application directorydefined('APPLICATION_PATH') || define('APPLICATION_PATH',realpath(dirname(__FILE__) . '/../application'));// Define
我的索引文件就是这个
<?php ini_set( "short_open_tag",1 ); ini_set( "display_errors",1 ); // 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' ); // Let 'er rip $application->bootstrap()->run(); 当我跑那个 警告:require_once(Zend / Application.php):无法打开流:第18行/var/www/Giftercity_backup/index.php中没有此类文件或目录致命错误:require_once():无法打开所需的’Zend / Application.第18行的/var/www/Giftercity_backup/index.php中的php'(include_path =’:.:/usr/share / php:/usr/share / pear’) 解决方法
对于Ubuntu.
如果你安装ZendFramework包.即sudo apt-get install zend-framework 它将把zend库文件放在/usr/share / php / libzend-framework-php / Zend /文件夹中 你必须将Zend /文件夹复制并粘贴到/ user / share / php / 在终端中运行以下命令. cd /usr/share/php sudo cp -R libzend-framework-php/Zend/ Zend (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |