Reputation: 1453
Why when I put
<?php ?>
on an empty index.php it prints a question mark "?", this has never hapenned to me, does any of you know why ? I have nothing on the index.php file but this also if i remove the last ?> the question mark keeps appearing. Note: I have Apache, PHP on Windows. Any Idas? I have years working with PHP, is this a matter of the CLR or something? Also when I put this tag method it does not shows the "?" and it works fine:
<script language="php">
echo "This is HTML script tags.";
</script>
Upvotes: 0
Views: 64
Reputation: 342
This problem is usually about UTF-8. Download Notepad++, open the file, and in the Encoding menu select Convert to UTF-8 without BOM and save it.
Upvotes: 1