Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 29.04.2009 Ostrzeżenie: (0%)
|
Program liczy pole i wszystko działa tylko że kiedy włączam index pojawia się komunikat:
Kod [b]Warning[/b]: main(.php) [[url="http://localhost/%7Et/function.main"]function.main[/url]]: failed to open stream: No such file or directory in [b]c:\usr\krasnal\www\T\index.php[/b] on line [b]15[/b] [b]Warning[/b]: main() [[url="http://localhost/%7Et/function.include"]function.include[/url]]: Failed opening '.php' for inclusion (include_path='.;C:\php5\pear') in [b]c:\usr\krasnal\www\T\index.php[/b] on line [b]15[/b] jak się tego pozbyć? Kod <?
echo '<table>'; echo'<tr>'; echo'<td>'; echo'<h1>Pole walca</h1>'; echo'</td>'; echo'</tr>'; echo'<tr>'; echo'<td>'; echo'<a href="index.php?tryb=dane">Oblicz pole</a><br>'; echo'<a href="index.php?tryb=info">Informacje</a>'; include( $_GET['tryb'] . '.php'); echo'</td>'; echo'<td>'; echo'</td>'; echo'</tr>'; echo '</table>'; ?> |
|
|
|
Goodwin Mały problem z include 29.04.2009, 19:53:13
okitoki index pewnie uruchamiasz bez parametru, dla tego p... 29.04.2009, 19:59:13
gulldarek Sprawdz czy zmienna $_GET['tryb'] jes... 29.04.2009, 20:26:30 ![]() ![]() |
|
Aktualny czas: 23.12.2025 - 15:29 |