Jump to content

Problems with require() function


raf2007

Recommended Posts

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

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.