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
Problem with include file
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
wrap in html
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.
phpScott
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>