Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]include nie wyswietla linkow
-tyfuz-
post
Post #1





Goście







Slabo sie znam w ogole na programowaniu. Przez noc wypocilem skrypcik pobierajacy mi nazwy plikow z foldera i przerabiajacy je na linki.
Skrypt sam w sobie dziala, lecz przy probie podlaczenia go do szablonu, linki w ogole sie nie wyswietlaja (IMG:style_emoticons/default/sad.gif)

skrypt
  1. <?php
  2. if(!$add_site) exit;
  3. error_reporting(E_ALL ^ E_NOTICE);
  4.  
  5. $praw = array(6=>$link);
  6. foreach (glob('../art/*.html') as $pl) {
  7. $link=basename($pl, '.html');
  8. $praw[]=$link;
  9. }
  10.  
  11. foreach($praw as $key => $value) {
  12. echo "<a href=\"index.php?go=$key\">$value</a>\n";
  13. }
  14. ?>


komenda do include
  1. <div id="praw1"><?php include "include/prawe.php" ?> </div>

Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kadlub
post
Post #2





Grupa: Zarejestrowani
Postów: 548
Pomógł: 105
Dołączył: 4.06.2010

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


nie masz średnika za include
sprawdżźczy pliki są w tym samym folderze

Ten post edytował kadlub 4.02.2011, 11:57:44
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: 10.10.2025 - 15:01