Jump to content
php.lv forumi

Atstarpes starp include failiem


vitalja

Recommended Posts

Jā - vari droši ignorēt :D

Nē, es ar vārdu ignorēt, gribēju pateikt, ka man vajag lai serveris tos ignorē.

Man bija  izdavies atrisināt šo problēmu iekš Google-Chrome un Opera izmantojot float, bet diemžēl Internet explorer pārlūkprogrammā šī problēma netiek atrisināta.

 

Varbūt kāds zinās kāds ir iemesls šai problēmai?

Link to comment
Share on other sites

Iemesls šai problēmai ir blīve starp krēslu un monitoru.

 

Pateica tev, aizvāc aizverošos PHP tegus. Drošība... 

<html>
<head>
<?php 
	$title="lapa";
	include 'part/head.php';
?>
</head>

<body>
<div align="center">
<?php 
	include_once 'part/header.php';
	
	include 'part/content.php';
	
	include 'part/footer.php';
?>
</div>
</body>
</html>

Man atstarpes veidojas include() sākumā nevis beigās. Aizvācot "?>",

</div>

</body>

</html>

paliek iekš php koda.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...