konto usunięte

Temat: Problem z zendem na serwerze vipserv.org

Jestem początkujący wiec.. proszę o wyrozumiałość... wygląda to tak
Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in /home/creatore/public_html/speedzend/public/index.php on line 21

Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path=' /home/creatore/public_html/speedzend/ZendFramework-1.11.7/library:/home/creatore/public_html/speedzend/library:.:/home/Array/pear/php/:/usr/lib/php/') in /home/creatore/public_html/speedzend/public/index.php on line 21

htaccess wyglada tak :

DirectoryIndex index.php
SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

A index.php
<?php
$_ENV["APPLICATION_ENV"] = $_SERVER["REDIRECT_APPLICATION_ENV"];
putenv("APPLICATION_ENV=".$_SERVER["REDIRECT_APPLICATION_ENV"]);

// 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(
' /home/creatore/public_html/speedzend/ZendFramework-1.11.7/library',
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();

Jakieś podpowiedzi ?

konto usunięte

Temat: Problem z zendem na serwerze vipserv.org

Błąd jest związany ze wskazaniem ścieżki dostępu do biblioteki:
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
' /home/creatore/public_html/speedzend/ZendFramework-1.11.7/library',
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
)));


Używasz jednej biblioteki w wielu projektach czy możesz pojechać klasykiem i użyć tego kodu:

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


A same pliki biblioteki proponuję umieścić w folderze library - to powinno rozwiązać problem:)



Wyślij zaproszenie do