Lange tijd geleden dat ik hier iets heb geplaatst, maar nu heb ik echt even jullie hulp nodig. :)
Ik heb voor het eerst een website gemaakt in het Zend Framework. Nu werkt deze perfect op localhost (XAMPP - PHP versie 5.3.8), maar als ik deze upload naar de server van de website waar hij op moet staan (PHP versie 5.2.17) krijg ik de volgende error:
Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'parse_ini_file(/application/configs/application.ini) [function.parse-ini-file]: failed to open stream: No such file or directory' in /var/www/qb205120/data/www/-domein-.nl/library/Zend/Config/Ini.php:182 Stack trace: #0 /var/www/qb205120/data/www/-domein-.nl/library/Zend/Config/Ini.php(202): Zend_Config_Ini->_parseIniFile('/application/co...') #1 /var/www/qb205120/data/www/-domein-.nl/library/Zend/Config/Ini.php(126): Zend_Config_Ini->_loadIniFile('/application/co...') #2 /var/www/qb205120/data/www/-domein-.nl/application/Bootstrap.php(150): Zend_Config_Ini->__construct('/application/co...', 'production') #3 /var/www/qb205120/data/www/-domein-.nl/library/Zend/Application/Bootstrap/BootstrapAbstract.php(667): Bootstrap->_initViewHelper() #4 /var/www/qb205120/data/www/-domein-.nl/library/Zend/Application/Bootstrap/BootstrapAbstract.php(620): Zend_Application_Bootstrap_BootstrapAbstract->_ in /var/www/qb205120/data/www/-domein-.nl/library/Zend/Config/Ini.php on line 182Hij zegt dus dat application.ini niet bestaat maar als ik kijk bestaat hij toch echt wel. Dit is is mijn public/index.php:
<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
// Define application environment
define('APPLICATION_ENV', 'testing');
/*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'
);
$application->bootstrap()
->run();
?>
Ik hoop dat iemand me kan helpen. :)
Gr.