All you have to do is rename the /public/ directory to /public_html/ so that you can keep the directory structure.
Then upload the other directories to the root folder on your account.
Posts mit dem Label Zend Framework werden angezeigt. Alle Posts anzeigen
Posts mit dem Label Zend Framework werden angezeigt. Alle Posts anzeigen
Sonntag, 22. April 2012
Zend Framework on 000webhost: library-path in index and bootstrap
// it seems absolute path is needed
// index.php:
ini_set('include_path', ini_get('include_path').':/home/a*******/library/:');
// bootstrap:
// it seems ROOT_DIR or $rootDir = dirname(dirname(__FILE__));
// not recognized
// Use absolute path instead
// . PATH_SEPARATOR . ROOT_DIR . '/library/'
// . PATH_SEPARATOR . ROOT_DIR . '/application/models/'
. PATH_SEPARATOR . '/home/a********/library/'
. PATH_SEPARATOR . '/home/a ******** /application/models/'
.htaccess for Zend Framework on 000webhost
RewriteEngine On
RewriteBase /
# Don't apply to URLs that go to existing files or folders:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# redirect everything to index:
RewriteRule .* index.php
# Security: Don't allow browsing of directories (obsolete on 000webhost)
#Options -Indexes
Abonnieren
Posts (Atom)