Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP][inne].htaccess, nieprawidłowy plik
BlackFruit
post 11.06.2013, 14:35:20
Post #1





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 10.06.2013

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


Witam, zacząłem zabawę z Zendem do PHP, postawiłem darmowy server na cba.pl, mam taki o to plik .htaccess

  1. RewriteEngine on
  2. RewriteRule .* index.php
  3. php_flag magic_quotes_gpc off
  4. php_flag register_globals off


I dostaje komunikat, że użyto złej funkcji w .htaccess, co tu jest źle?

Ten post edytował BlackFruit 11.06.2013, 14:36:08
Go to the top of the page
+Quote Post
-Gość-
post 11.06.2013, 14:37:58
Post #2





Goście







RewriteRule .* index.php
na
RewriteRule .* /index.php

chyba tu jest błąd
Go to the top of the page
+Quote Post
BlackFruit
post 11.06.2013, 14:41:39
Post #3





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 10.06.2013

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


Nadal to samo :/
Go to the top of the page
+Quote Post
-Gość-
post 11.06.2013, 14:43:17
Post #4





Goście







http://www.zymic.com/forum/index.php?showtopic=20364
hm?
Go to the top of the page
+Quote Post
BlackFruit
post 11.06.2013, 14:52:13
Post #5





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 10.06.2013

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


Więc jak to zamienić?
Go to the top of the page
+Quote Post
erix
post 11.06.2013, 15:29:43
Post #6





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Wywal:
[APACHE] pobierz, plaintext
  1. php_flag magic_quotes_gpc off
  2. php_flag register_globals off
[APACHE] pobierz, plaintext

Niewiele serwerów (na szczęście) działa z PHP via mod_php, dlatego użycie tych dyrektyw wysypuje całość, ponieważ są nieznane Apache'owi. [;


--------------------

ZCE :: Pisząc PW załączaj LINK DO TEMATU i TYLKO w sprawach moderacji :: jakiś błąd - a TREŚĆ BŁĘDU? :: nie ponaglaj z odpowiedzią via PW!
Go to the top of the page
+Quote Post
BlackFruit
post 11.06.2013, 16:15:51
Post #7





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 10.06.2013

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


Gdy je wywale to wgl nie odnajduje takiej strony :c
Go to the top of the page
+Quote Post
erix
post 11.06.2013, 16:33:40
Post #8





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Błąd jest pewnie gdzie indziej - może być np. za stary interpreter.


--------------------

ZCE :: Pisząc PW załączaj LINK DO TEMATU i TYLKO w sprawach moderacji :: jakiś błąd - a TREŚĆ BŁĘDU? :: nie ponaglaj z odpowiedzią via PW!
Go to the top of the page
+Quote Post
BlackFruit
post 11.06.2013, 20:03:57
Post #9





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 10.06.2013

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


Cytat
Warning: include(Zend.php)
[function.include]: failed to open
stream: No such file or directory
in /virtual/zendtesting.cba.pl/
Zf-tutorial/index.php on line 5
Warning: include()
[function.include]: Failed opening
'Zend.php' for inclusion
(include_path='.:./library/:./
application/models.:/opt/lib/
php') in /virtual/
zendtesting.cba.pl/Zf-tutorial/
index.php on line 5
Fatal error: Class 'Zend' not
found in /virtual/
zendtesting.cba.pl/Zf-tutorial/
index.php on line 6


Kod
  1. <?php
  2. error_reporting(E_ALL|E_STRICT);
  3. date_default_timezone_set('Europe/London');
  4. set_include_path('.' . PATH_SEPARATOR . './library/'. PATH_SEPARATOR . './application/models'. get_include_path());
  5. include "Zend.php";
  6. Zend::loadClass('Zend_Controller_Front');
  7. Zend::loadClass('Zend_Controller_RewriteRouter');
  8.  
  9. // Tworzymy controller
  10. $router = new Zend_Controller_RewriteRouter();
  11. $baseUrl = substr($_SERVER['PHP_SELF'], 0,strpos($_SERVER['PHP_SELF'], '/index.php'));
  12. $router->setRewriteBase($baseUrl);
  13. $controller = Zend_Controller_Front::getInstance();$controller->setRouter($router);
  14.  
  15. // Uruchamiamy!
  16. $controller->run('./application/controllers');

Co nie tak?
Go to the top of the page
+Quote Post
BlackFruit
post 11.06.2013, 20:03:57
Post #10





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 10.06.2013

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


Cytat
Warning: include(Zend.php)
[function.include]: failed to open
stream: No such file or directory
in /virtual/zendtesting.cba.pl/
Zf-tutorial/index.php on line 5
Warning: include()
[function.include]: Failed opening
'Zend.php' for inclusion
(include_path='.:./library/:./
application/models.:/opt/lib/
php') in /virtual/
zendtesting.cba.pl/Zf-tutorial/
index.php on line 5
Fatal error: Class 'Zend' not
found in /virtual/
zendtesting.cba.pl/Zf-tutorial/
index.php on line 6


Kod
  1. <?php
  2. error_reporting(E_ALL|E_STRICT);
  3. date_default_timezone_set('Europe/London');
  4. set_include_path('.' . PATH_SEPARATOR . './library/'. PATH_SEPARATOR . './application/models'. get_include_path());
  5. include "Zend.php";
  6. Zend::loadClass('Zend_Controller_Front');
  7. Zend::loadClass('Zend_Controller_RewriteRouter');
  8.  
  9. // Tworzymy controller
  10. $router = new Zend_Controller_RewriteRouter();
  11. $baseUrl = substr($_SERVER['PHP_SELF'], 0,strpos($_SERVER['PHP_SELF'], '/index.php'));
  12. $router->setRewriteBase($baseUrl);
  13. $controller = Zend_Controller_Front::getInstance();$controller->setRouter($router);
  14.  
  15. // Uruchamiamy!
  16. $controller->run('./application/controllers');

Co nie tak?
Go to the top of the page
+Quote Post
drPayton
post 11.06.2013, 20:10:54
Post #11





Grupa: Zarejestrowani
Postów: 890
Pomógł: 65
Dołączył: 13.11.2005
Skąd: Olsztyn

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


Wyraźnie masz napisane "co nie tak". Nie może odnaleźć pliku Zend.php i nawet jest tak miły i mówi, gdzie go próbował szukać wink.gif
Dodaj ścieżkę do folderu, w którym znajduje się ten plik, do include_path
Go to the top of the page
+Quote Post
-Gość-
post 12.06.2013, 08:15:13
Post #12





Goście







Ew. sprawdź, czy klient FTP niepodmienił Tobie dużych liter na małe podczas wgrywania plików na serwer.
Go to the top of the page
+Quote Post
BlackFruit
post 12.06.2013, 13:48:39
Post #13





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 10.06.2013

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


Jaki plik zastępuje Zend.php z wersji 0.2 w nowszych wersjach? Takiego pliku nie ma, a ja nie wiem na jaki go zmienić sad.gif
Go to the top of the page
+Quote Post
erix
post 12.06.2013, 15:07:08
Post #14





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Nie rozumiem pytania?


--------------------

ZCE :: Pisząc PW załączaj LINK DO TEMATU i TYLKO w sprawach moderacji :: jakiś błąd - a TREŚĆ BŁĘDU? :: nie ponaglaj z odpowiedzią via PW!
Go to the top of the page
+Quote Post
drPayton
post 12.06.2013, 22:52:44
Post #15





Grupa: Zarejestrowani
Postów: 890
Pomógł: 65
Dołączył: 13.11.2005
Skąd: Olsztyn

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


Z wersji 0.2? oO Toż to prehistoria biggrin.gif

Przejdź QuickStart krok po kroku, to najlepsze co możesz zrobić w takiej sytuacji wink.gif

http://framework.zend.com/manual/1.12/en/l...quickstart.html
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 13.06.2025 - 06:40