Page 1 of 1

Problem with include file

Posted: Thu May 01, 2003 4:33 am
by tiendan
Hi everybody. I have a problem with include file. Please help me.

I have a file file logo.phtml with content :
------------------------------
<table border='1'>
<tr>
<td>
Content here
</td>
</tr>
</table>
------------------------------

And I have index.php file :
-------------------------------
<?
include('logo.phtml');
........................
...........................
?>

--------------------------------


When I include logo.phtml into index.php, file index.php will have a blank line at the first. And everytime and everywhere when I include file, the blank line also appear> I don't know fix it. Help me.

Thank you

Posted: Thu May 01, 2003 7:19 am
by twigletmac
I take it you have made sure that there are no blank lines at the top of logo.phtml

Mac

Posted: Thu May 01, 2003 8:36 am
by tiendan
Yes, no blank line at logo.phtml.

wrap in html

Posted: Thu May 01, 2003 1:03 pm
by phpScott
It could be that you are not wraping your first file around <html> </html> tags and the brower is by default leaving room.

Try includint you file down in the hmtl code some where.

Code: Select all

<html>
<head><tiitle>Your Page</title>
<head>
<body>
<?php
include('yourFileHere.phtml')
?>
</body>
</html>
phpScott