Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> styl
-021EM-
post
Post #1





Goście







witam,mam pewnien banalny probem dotyczący includowania:
mam plik index.php a w nim include styl strony :
  1. <?php
  2. ("theme/normal.tmp"); 
  3. ?>

super ,cacy wszystko sie includuje
ale mam też plik admin/index.php w którym mam napisane
  1. <?php
  2. include ("..theme/normal.tmp");
  3. ?>

Niesety wyświetla sie dziurawy styl bez obrazków ... jeżeli sprawdzam link obrazka to jest
"http://localhost/admin/index/top.gif" a powinien być "http://10.10.31.11/index/top.gif"
przepraszam wszystkich jeżeli owy temat już był...
proszę o pomoc i pozdrawiam:)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-021EM-
post
Post #2





Goście







Cytat
zjadles /

sorka literówka
no trzymam strone na apachu,ale na serwerze nieraz tez robie
poprostu:
w katalogu admin/ nie ma folderu theme. Jest on odrazu w public_html
jest tak:
public_html
admin/ //folder panelu adm
theme/ //folder styli strony
index/ //folder z obrazkami
index.php //w pliku <php include ("theme/normal.tmp"); ?>
config.php
no i mam w folderze admin plik index.php ..a jak w nim includuje styl strony <php include ("../theme/normat.tmp"); ?> to nie wczytuje obrazków ze stylu bo myśli że folder index znajduje sie w katalogu admin/
źle chyba tłumacze :cry:
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: 9.10.2025 - 11:18