Datuve :: Forums :: Arhīvs :: php include parādās atstarpes starp include failiem

Datuve

Mana Datuve

Reģistrācija | Noteikumi | Paroles atjaunošana



Forums

Ieskaties


Raksti

Lietotāji online

Lietotāji online: 124

Reģistrētie lietotāji online: 0

Viesi online: 124

Datuve.lv video
Top.LV

php include parādās atstarpes starp include failiem

Ievietoja: mazais_hakeris @ 2007.03.17 09:15  

Apskatīt var šeit: http://87.110.37.60/m/
ir 4 faili header, index, footer es mācos php tāpēc īsti nēesmu pārliecināts par pareizi failu izkārtojumu.
index saturs:


<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>

<?php include("header.phtml"); ?>

<div id="main">
<p>index</p>
</div>

<?php include("footer.phtml"); ?>

header saturs:


<div id="header">
<p>header</p>
</div>

footer saturs:


<div id="footer">
<p>footer</p>
</div>

</body>
</html>

Ir vel css fails, bet problēma nav viņā, jo tiem include failiem nav margini norādīti. Atverot ar FF ir atstarpes starp header - index un index - footer, bet atverot ar IE atstarpe ir starp index - footer.