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ś... |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Moderatorzy Postów: 36 559 Pomógł: 6315 Dołączył: 27.12.2004 |
jesli ten opis jest dla ciebie mglisty to ja nie wiem jak ci lepiej to wytlumaczyc
http://pl.php.net/manual/pl/function.include.php |
|
|
|
mat_1200 require i include 18.12.2005, 13:11:31
dr_bonzo ../fragments/news.php 18.12.2005, 13:22:47
tommy4 Myślę, że aby "przesunąć" się o jeden po... 18.12.2005, 13:23:14
mat_1200 Dzieki 18.12.2005, 13:25:52
beginner ale ale..jaka jest właściwie różnica między funkcj... 18.12.2005, 19:49:44
beginner dziex.
Ten opis jest przede wszystkim niewystarcza... 18.12.2005, 20:40:40
FiDO Wg mnie w manualu jest napisane bardzo jasno czym ... 18.12.2005, 20:49:59
dr_bonzo Roznia sie tylko typem wyrzucanego bledu w przypad... 18.12.2005, 20:50:23
mat_1200 Oblookajcie moj topic http://forum.php.pl/index.ph... 18.12.2005, 20:54:38
beginner hmmm... sam nie wiem co o tym myslec /uparty /
A p... 18.12.2005, 23:43:27
dr_bonzo Manual: "The require() statement includes and... 18.12.2005, 23:59:41
beginner Chyba, powtarzam CHYBA.....czuje sie pokonany:)
Dz... 19.12.2005, 00:05:38 ![]() ![]() |
|
Aktualny czas: 10.10.2025 - 09:23 |