Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Tlo dla plikow inc*
cineck
post
Post #1





Grupa: Zarejestrowani
Postów: 98
Pomógł: 0
Dołączył: 8.12.2003
Skąd: Babimost City

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


witam...
mam nastepujacy problem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) mam strone w php, i korzystam w plikow inc* znajdujacych sie w katalugu includes. I moje pytanie: czy mozna zrobic tak aby ten plik wyswietlajac text , mial rowniez kolorowe tlo (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Bo u mnie jest ono biale. Probowalem roznych komend i jest ono nadal biale, a bardzo chcialbym wstawic tam jakis ladny kolorek tla.

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


Developer


Grupa: Moderatorzy
Postów: 2 844
Pomógł: 20
Dołączył: 25.11.2003
Skąd: Olkusz




  1. <?php
  2. <html> 
  3. <body bgcolor=&#092;"red\">
  4. <? if(!isset($page)) {
  5. $page=&#092;"index\";
  6. }
  7. if(file_exists(&#092;"includes/$page.inc\")) {
  8. include &#092;"includes/$page.inc\";
  9. } else {
  10. echo &#092;"Strona niedostępna!\";
  11. }
  12. ?>
  13. ?>

Na przyklad tak albo w includowanym pliku to daj
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: 8.10.2025 - 21:21