Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [ZendFramework] 000webhost konfiguracja
niedoswiadczony
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 29.01.2010

Ostrzeżenie: (0%)
-----


Witajcie,

Mam problem, otóż nie umiem zrobić tak aby działało ...
Do rzeczy.
Dłubie sobie lokalnie na apachu w zendzie i chciałbym to wrzucić na jakiś darmowy hosting, do celów poszerzania wiedzy.
W czeluściach googla znalazłem ten hosting 000webhost, podobno działa na nim zend.

Pobrałem ze strony zenda czyściutki nieskalany moimi kodami ZendFrameworkQuickstart
wysłałem na serwer do katalogu public_html
w panelu admina zrobiłem przekierowanie do folderu public

i gdy myślałem ze to koniec przygotowywań i że obejrzę stronę startową
http://natest1.webuda.com/

otrzymałem to




  1. PHP Error Message
  2.  
  3. Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /home/a4491339/public_html/public/index.php on line 14
  4.  
  5. Free Web Hosting
  6.  
  7. PHP Error Message
  8.  
  9. Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='/home/a4491339/public_html/application/../library:.:/usr/lib/php:/usr/local/lib/php') in /home/a4491339/public_html/public/index.php on line 14
  10.  
  11. Free Web Hosting


index.php
  1. <?php
  2. // APPLICATION_PATH is a constant pointing to our application/ subdirectory.
  3. // We use this to add our "library" directory to the include_path, so that
  4. // PHP can find our Zend Framework classes.
  5. define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/'));
  6. APPLICATION_PATH . '/../library'
  7. . PATH_SEPARATOR . get_include_path());
  8.  
  9. // AUTOLOADER - Set up autoloading.
  10. // This is a nifty trick that allows ZF to load classes automatically so
  11. // that you don't have to litter your code with 'include' or 'require'
  12. // statements.
  13. require_once "Zend/Loader.php";
  14. Zend_Loader::registerAutoload();
  15.  
  16. // REQUIRE APPLICATION BOOTSTRAP: Perform application-specific setup
  17. // This allows you to setup the MVC environment to utilize. Later you
  18. // can re-use this file for testing your applications.
  19. // The try-catch block below demonstrates how to handle bootstrap
  20. // exceptions. In this application, if defined a different
  21. // APPLICATION_ENVIRONMENT other than 'production', we will output the
  22. // exception and stack trace to the screen to aid in fixing the issue
  23. try {
  24. require APPLICATION_PATH . '/bootstrap.php';
  25. } catch (Exception $exception) {
  26. echo '<html><body><center>'
  27. . 'An exception occured while bootstrapping the application.';
  28. if (defined('APPLICATION_ENVIRONMENT') && APPLICATION_STATE != 'production') {
  29. echo '<br /><br />' . $exception->getMessage() . '<br />'
  30. . '<div align="left">Stack Trace:'
  31. . '<pre>' . $exception->getTraceAsString() . '</pre></div>';
  32. }
  33. echo '</center></body></html>';
  34. exit(1);
  35. }
  36.  
  37.  
  38. // DISPATCH: Dispatch the request using the front controller.
  39. // The front controller is a singleton, and should be setup by now. We
  40. // will grab an instance and dispatch it, which dispatches your
  41. // application.
  42. Zend_Controller_Front::getInstance()->dispatch();
  43.  



z resztą pod linkiem widać

Czuje się zielony w tym temacie i nie wiem jak to dalej ruszyć by w końcu ruszyć.

Byłbym wdzięczny za bardzo łopatologiczną poradę, bo w googlach nie znajduje odpowiedzi (IMG:style_emoticons/default/sad.gif)


Go to the top of the page
+Quote Post
darko
post
Post #2





Grupa: Zarejestrowani
Postów: 2 885
Pomógł: 463
Dołączył: 3.10.2009
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


w index.php dodaj:

ini_set('include_path', "/home/a4491339/public_html/library:/home/a4491339/public_html/application/configs");
Go to the top of the page
+Quote Post
niedoswiadczony
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 29.01.2010

Ostrzeżenie: (0%)
-----


(IMG:style_emoticons/default/sad.gif) nie działa

  1. <?php
  2.  
  3. //ini_set('include_path','/home/a4491339/public_html/library:/home/a4491339/public_html/application/models/');
  4. //ini_set('include_path','/home/a4491339/public_html/library:/home/a4491339/public_html/application/');
  5. ini_set('include_path','/home/a4491339/public_html/library:/home/a4491339/public_html/application/config/');
  6.  
  7. define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/'));
  8.  
  9. APPLICATION_PATH . '/../library'
  10. . PATH_SEPARATOR . get_include_path());
  11.  
  12.  
  13. require_once "Zend/Loader.php";
  14. Zend_Loader::registerAutoload();
  15.  
  16. try {
  17. require APPLICATION_PATH . '/bootstrap.php';
  18. } catch (Exception $exception) {
  19. echo '<html><body><center>'
  20. . 'An exception occured while bootstrapping the application.';
  21. if (defined('APPLICATION_ENVIRONMENT') && APPLICATION_STATE != 'production') {
  22. echo '<br /><br />' . $exception->getMessage() . '<br />'
  23. . '<div align="left">Stack Trace:'
  24. . '<pre>' . $exception->getTraceAsString() . '</pre></div>';
  25. }
  26. echo '</center></body></html>';
  27. exit(1);
  28. }
  29.  
  30. Zend_Controller_Front::getInstance()->dispatch();


co robię niewłaściwie ?
Go to the top of the page
+Quote Post
seth-kk
post
Post #4





Grupa: Zarejestrowani
Postów: 444
Pomógł: 79
Dołączył: 26.05.2009

Ostrzeżenie: (0%)
-----


czy ludzie potrafiacy czytac ze zrozumieniem naprawde sa gatunkiem zagrozonym?
jak widac w komunikacie bledu lokacja biblioteki zostala dolaczona do include_path a mimo to plik Loader.php nie zostal znaleziony
wskazowka: nie wszystkie pliki dotarly na serwer, wielkosc znakow folderow nie zgadza sie z tym co masz w kodzie
Go to the top of the page
+Quote Post
niedoswiadczony
post
Post #5





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 29.01.2010

Ostrzeżenie: (0%)
-----


dzięki,
jednak ZendFrameworkQuickstart bez biblioteki nie chce działać (IMG:style_emoticons/default/winksmiley.jpg)

ale po jej uzupełnieniu działa, jest jakiś sposób na PDO
czy lepiej przejść odrazu na xtreemhost.com, bo tam chyba to działa
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 02:06