Jump to content

[SOLVED] include inserting gap in IE 6


asmith

Recommended Posts

hi

 

i struggled with a piece of code for like 3 hours, then i decided to delete everything to find out what's the problem.

 

this simple code :

<?php
include('anyfile.php');
echo '
<html>
<body>
<table border="10">
<tr><td>asdas</td></tr></table>
</body>
</html>';
?>

 

If this file is saved in ANSI , everyting goes right.

IF this file is saved in UTF-8 (as i'm using arabic characters i have to save it on UTF-8),  the include line inserts  gap at the top of the page. a white line with a height of 5 maybe, that i killed myself to remove, it won't go unless i remove the include line. (i've tried all body margin , padding to 0 .  it is not part of the html i guess)

What should i do ?  ???  ???  ???  (it all happens in IE 6. FF is fine about it)

Link to comment
https://forums.phpfreaks.com/topic/109607-solved-include-inserting-gap-in-ie-6/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.