Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem, nie wiem jak to rozwiązać
Gibcio
post
Post #1





Grupa: Zarejestrowani
Postów: 48
Pomógł: 0
Dołączył: 20.04.2005

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


  1. <?
  2. $plik=&#092;"admin/pliki/główna.txt\";
  3. $dane=file(&#092;"$plik\");
  4. krsort($dane);
  5. foreach($dane as $linia)
  6. {
  7. $kom = explode(&#092;"|&&|\", chop($linia));
  8. }
  9. echo' <title>'.$kom[0].'</title>';
  10. 10 echo' <table border=\"0\" width=\"100%\">';
  11. 11 echo' <tr>';
  12. 12 echo' <td width=\"100%\">aa</td>';
  13. 13 echo' </tr>';
  14. 14 echo' </table>';
  15. 15 echo' <br>';
  16. 16 echo' <table border=\"0\" width=\"100%\">';
  17. 17 echo' <tr>';
  18. 18 echo' <td width=\"20%\">include (\"include/menu.php\")</td>'; 
  19. 19 echo' <td width=\"60%\">aa</td>';
  20. 20 echo' <td width=\"20%\">aa</td>';
  21. 21 echo' </tr>';
  22. 22 echo' </table>';
  23. 23 ?>
  24.  
  25. Mój problem polega to tym iż menu się nie pojawia mimo że ono jest. Czy jest na 
  26. o jakieś lekarstwo? 
  27. Menu chcę dołączyć w komórce w linii 17.


Ten post edytował Gibcio 24.04.2005, 14:03:36
Go to the top of the page
+Quote Post
aleksander
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 742
Pomógł: 0
Dołączył: 14.12.2003
Skąd: Gdańsk, Trójmiasto

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




popraw albo zamknę!
Go to the top of the page
+Quote Post
strife
post
Post #3





Grupa: Przyjaciele php.pl
Postów: 2 605
Pomógł: 96
Dołączył: 22.10.2004
Skąd: UK

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


Może tak?
  1. <?php
  2.  
  3. echo' <td width=\"20%\">'.include(&#092;"include/menu.php\").'</td>';
  4.  
  5. ?>


Pozdrawiam!


--------------------
Go to the top of the page
+Quote Post
Gibcio
post
Post #4





Grupa: Zarejestrowani
Postów: 48
Pomógł: 0
Dołączył: 20.04.2005

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


Dalej nie działa sad.gif
Go to the top of the page
+Quote Post
strife
post
Post #5





Grupa: Przyjaciele php.pl
Postów: 2 605
Pomógł: 96
Dołączył: 22.10.2004
Skąd: UK

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


Teraz musi!
  1. <?php
  2.  
  3.  echo' <td width=\"20%\">';
  4.  include(&#092;"file.txt\");
  5.  echo '</td>';
  6.  
  7. ?>


--------------------
Go to the top of the page
+Quote Post
Gibcio
post
Post #6





Grupa: Zarejestrowani
Postów: 48
Pomógł: 0
Dołączył: 20.04.2005

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


W przeglądarce wyskakuje taki błąd:


Warning: main(file.txt) [function.main]: failed to open stream: Invalid argument in C:\WebServ\httpd\index.php on line 19

Warning: main() [function.include]: Failed opening 'file.txt</td>' for inclusion (include_path='.;C:\php5\pear') in C:\WebServ\httpd\index.php on line 19


DZIKI LUDZISKA WIELKIE ZA POMOC - PEWNIE JESZCZE BD WAS WYKOŻYSTYWAŁ SAM JUŻ DOSZEDŁEM DO TEGO

W LINI 18: POWINNO BYĆ TAK:
  1. <?php
  2.  
  3. echo' <td width=\"20%\">'; echo' ';include(&#092;"menu.php\");''; echo' </td>';
  4.  
  5. ?>

I MENU JEST

Ten post edytował Gibcio 24.04.2005, 14:04:32
Go to the top of the page
+Quote Post

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: 21.08.2025 - 13:07