When the include fuinction is used in an html file like:
<div>
<p> This is a test line.</p>
<?php include("somefile1.php");?>
<?php include("somefile2.php");?>
<p> This is a more test.</p>
<p> This is a more stuff.</p>
<?php include("somefile3.php");?>
<?php include("somefile4.php");?>
</div>
a new line (carriage return) is automatically inserted at the top of the <div> area for each occurrence of the include function..
So what I expect to see is
This is a test line.
This is from somefile1.php.
This is from somefile2.php.
This is a more test.
This is a more stuff.
this is from somefile3.php
this is from somefile4.php
But what I actually see is:
This is a test line.
4 line feeds
This is from somefile1.php.
This is from somefile2.php.
This is a more test.
This is a more stuff.
this is from somefile3.php
this is from somefile4.php
Any help appreciated.
Thanks,
rosehillraymond