raf2007 Posted January 24, 2007 Share Posted January 24, 2007 archivo.php ---------------- <?php $texto="Texto de prueba"; ?> index.php ------------- <?php require ("archivo.php"); ?> <table border="1"> <tr> <td> <?php echo $texto; ?> </td> </tr> </table>When you run this example in Microsoft Explorer a blank line appears over the table. This only happens if you save the files in UDF-8 format. If you look at view-->source code, you can see a small vertical rectangle before <head>. If you don't use the require() function the rectangle doesn't appear. What's happening? Link to comment https://forums.phpfreaks.com/topic/35488-problems-with-require-function/ Share on other sites More sharing options...
suzzane2020 Posted January 24, 2007 Share Posted January 24, 2007 hw about tryin include instead of require? Link to comment https://forums.phpfreaks.com/topic/35488-problems-with-require-function/#findComment-167910 Share on other sites More sharing options...
raf2007 Posted January 24, 2007 Author Share Posted January 24, 2007 With include() the problem is the same. Link to comment https://forums.phpfreaks.com/topic/35488-problems-with-require-function/#findComment-167912 Share on other sites More sharing options...
suzzane2020 Posted January 24, 2007 Share Posted January 24, 2007 i tried out the same code and it worked fine...so te prob shud be with te path..do u have the ile tht u include in te same directory as the index file? Link to comment https://forums.phpfreaks.com/topic/35488-problems-with-require-function/#findComment-167913 Share on other sites More sharing options...
raf2007 Posted January 24, 2007 Author Share Posted January 24, 2007 The path is the same. Have you tried with Microsoft Explorer? I´ve done it in 3 different computers and the problem is the same. With Opera and Firefox everything is OK. Link to comment https://forums.phpfreaks.com/topic/35488-problems-with-require-function/#findComment-167943 Share on other sites More sharing options...
suzzane2020 Posted January 24, 2007 Share Posted January 24, 2007 hmm it works fine in ie..u said smethn bout saving it in a format..tried saving it in te usual way? Link to comment https://forums.phpfreaks.com/topic/35488-problems-with-require-function/#findComment-167960 Share on other sites More sharing options...
raf2007 Posted January 24, 2007 Author Share Posted January 24, 2007 It doesn't work fine in I.E. The error occurs in I.E, but only with UTF-8 format and when you use <TABLE> in a page were you're using the require() function. I can save files in ANSI format, but I would like to work with UTF-8. Could it be a I.E. bug? Link to comment https://forums.phpfreaks.com/topic/35488-problems-with-require-function/#findComment-167964 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.