Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]jakieś błędy się wkradły
agnies25
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 18.05.2012

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


Witam

Ten post edytował agnies25 18.05.2012, 19:11:12
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 9)
viking
post
Post #2





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

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


W wielkości liter? Serwer testowy na Windows, docelowy na Linux?
Go to the top of the page
+Quote Post
agnies25
post
Post #3





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 18.05.2012

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


Cytat(viking @ 18.05.2012, 14:48:25 ) *
W wielkości liter? Serwer testowy na Windows, docelowy na Linux?

serwery identyczne, wielkość może na to wpłynąć?
Go to the top of the page
+Quote Post
toffiak
post
Post #4





Grupa: Zarejestrowani
Postów: 395
Pomógł: 80
Dołączył: 24.08.2009

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


AdminFunctions.php i adminfunctions.php to nie to samo jak nazywają sie oryginalne pliki ?
Go to the top of the page
+Quote Post
toffiak
post
Post #5





Grupa: Zarejestrowani
Postów: 395
Pomógł: 80
Dołączył: 24.08.2009

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


http://qwe.dvasercia.com.ua/admin/adminfunctions.php jest plik
http://qwe.dvasercia.com.ua/admin/AdminFunctions.php brak obiektu

Na serwerze plik jest zapisany z dużej litery czy z małych ? , jeśli z małych to zamień nazwy
Go to the top of the page
+Quote Post
agnies25
post
Post #6





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 18.05.2012

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


Cytat(toffiak @ 18.05.2012, 15:19:02 ) *
http://qwe.dvasercia.com.ua/admin/adminfunctions.php jest plik
http://qwe.dvasercia.com.ua/admin/AdminFunctions.php brak obiektu

Na serwerze plik jest zapisany z dużej litery czy z małych ? , jeśli z małych to zamień nazwy


na serwerze był małej, zmieniłem na duże litery - teraz jest inna informacja:

Warning: include_once(../Database.php) [function.include-once]: failed to open stream: No such file or directory in /home/agnies25/domains/qwe.dvasercia.com.ua/public_html/admin/AdminFunctions.php on line 3

Warning: include_once() [function.include]: Failed opening '../Database.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/agnies25/domains/qwe.dvasercia.com.ua/public_html/admin/AdminFunctions.php on line 3

Warning: include_once(../Constants.php) [function.include-once]: failed to open stream: No such file or directory in /home/agnies25/domains/qwe.dvasercia.com.ua/public_html/admin/AdminFunctions.php on line 4

Warning: include_once() [function.include]: Failed opening '../Constants.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/agnies25/domains/qwe.dvasercia.com.ua/public_html/admin/AdminFunctions.php on line 4

Fatal error: Class 'Database' not found in /home/agnies25/domains/qwe.dvasercia.com.ua/public_html/admin/AdminFunctions.php on line 5
Go to the top of the page
+Quote Post
toffiak
post
Post #7





Grupa: Zarejestrowani
Postów: 395
Pomógł: 80
Dołączył: 24.08.2009

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


Pewnie na serwerze pliki database.php, constants.php też są z małej. Też należy je zamienić, nazwy pliku muszą być identyczne jak nazwy w skryptach.
Go to the top of the page
+Quote Post
agnies25
post
Post #8





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 18.05.2012

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


Cytat(toffiak @ 18.05.2012, 15:42:49 ) *
Pewnie na serwerze pliki database.php, constants.php też są z małej. Też należy je zamienić, nazwy pliku muszą być identyczne jak nazwy w skryptach.



zrobiłem, przeszliśmy o krok dalej, ale pojawia się info o błedzie z bazą:

Administrator Area Login Area
Welcome to Administrator Panel


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'kz124305_zlece'@'localhost' (using password: TAK) in /home/agnies25/domains/qwe.dvasercia.com.ua/public_html/Database.php on line 7
Failed Connecting To Mysql


w skrypcie mam tak:

function connect_db() {
mysql_connect(localhost,kz124305_zlece,oferta1709) OR Die("Failed Connecting To Mysql");
mysql_select_db(kz124305_zlece) OR Die("Failed Connecting To Database");


hasło i baza jest ok.

Go to the top of the page
+Quote Post
kpt_lucek
post
Post #9





Grupa: Zarejestrowani
Postów: 428
Pomógł: 77
Dołączył: 10.07.2011
Skąd: Warszawa

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


a plik.htaccess masz skopiowany? (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
agnies25
post
Post #10





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 18.05.2012

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


Cytat(kpt_lucek @ 18.05.2012, 16:08:52 ) *
a plik.htaccess masz skopiowany? (IMG:style_emoticons/default/smile.gif)



pewnie

ale ten plik mam tylko w katalogu admina
w głownym katalogu nei mam
nadmienie, że cała strona działa, tylko nie ma dojścia do zaplecza

Ten post edytował agnies25 18.05.2012, 16:32:51
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 - 04:51