Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Dlaczego to niedziala?
pys1986
post
Post #1





Grupa: Zarejestrowani
Postów: 233
Pomógł: 0
Dołączył: 18.01.2005

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


Mam strone i jest w niej kilka razy urzywane include('cos tam'); na localhoscie mi to dziala a na serwerze nie, wyswietla sie cos takiego:

Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stadionk/public_html/cms/center.php on line 29

ta linijka 29 wyglada tak:

include('newsy.php');
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 7)
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Być może na serwerze nie widzi includowanego pliku
Go to the top of the page
+Quote Post
Vertical
post
Post #3





Grupa: Zarejestrowani
Postów: 848
Pomógł: 0
Dołączył: 7.07.2004
Skąd: Wrocław

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


Ustaw na serwerze DocumentRoot, bo wygląda na to, że skrypt próbuje pobrać plik newsy.php z "/usr/local/lib/php"
Go to the top of the page
+Quote Post
pys1986
post
Post #4





Grupa: Zarejestrowani
Postów: 233
Pomógł: 0
Dołączył: 18.01.2005

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


Ale jak mam to ustawic (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post
Vertical
post
Post #5





Grupa: Zarejestrowani
Postów: 848
Pomógł: 0
Dołączył: 7.07.2004
Skąd: Wrocław

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


W httpd.conf piszesz:
Kod
DocumentRoot "{sciezka}"

Ustaw DocumentRoot na "/.../katalog_apache//htdocs" (domyślna ścieżka dla skryptów w apache)

Ten post edytował Vertical 24.02.2005, 13:49:21
Go to the top of the page
+Quote Post
pys1986
post
Post #6





Grupa: Zarejestrowani
Postów: 233
Pomógł: 0
Dołączył: 18.01.2005

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


Wiem ze zadaje glupie pytania ale gdzie sie znajduje ten plik, bo ja na serwerze go niewidze (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ?

Ten post edytował pys1986 24.02.2005, 13:57:10
Go to the top of the page
+Quote Post
crash
post
Post #7





Grupa: Przyjaciele php.pl
Postów: 2 196
Pomógł: 2
Dołączył: 17.01.2004
Skąd: Sosnowiec

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


Vertical: A co ma include_path z php do DocumentRoota?!

pys1986: Próbowałeś: include('./newsy.php'); ?
Go to the top of the page
+Quote Post
Bakus
post
Post #8


Administrator serwera


Grupa: Przyjaciele php.pl
Postów: 909
Pomógł: 0
Dołączył: 12.08.2003
Skąd: /var/www/wroclaw.php

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


Proszę o wysłanie mi na PW poprawnego tematu, a wątek odblokuje
Go to the top of the page
+Quote Post

Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 18:13