Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> require i include
mat_1200
post
Post #1





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 17.12.2005

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


Mam problem z funkcją require i include. Mam oto takie katalogi:

fragments

tables
_____________

w folderze 'tables' jest plik 'tables_news.php'

w folderze 'fragments' jest pelno plikow a jeden z nich to 'news.php'

W pliku 'tables_news.php' chce wstawić funkcję require tak by w nawiasie był plik 'news.php'

Próbowałem wpisać require'fragments/news.php'; ale nie dziala.
wyskoczył błąd:
Cytat
Warning: main(fragments/news.php): failed to open stream: No such file or directory in c:\usr\apache\httpd\html\www\site kod\php\tables\table_news.php on line 1

Fatal error: main(): Failed opening required 'fragments/news.php' (include_path='.') in c:\usr\apache\httpd\html\www\site kod\php\tables\table_news.php on line 1


Poradzcie coś...
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 19.08.2025 - 10:55