Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Mały problem z include
Goodwin
post
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>';


  ?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 15:29