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
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ś...