Jump to content

White spaces on head of document after include or require a file


Recommended Posts

Hi, I'm running across a very strange problem and I have no idea of how to deal with it!

 

When I include a file the output generates a whitespace for each included file!

 

This is in fact damaging the layout of the site.

 

In the Chrome browser it's possible to see a dot for each space,

but when copied and pasted it is now a square char.

 

 

 

 

It could be do with how you are saving your PHP files regarding the charset. Ensure you're saving your files as ASCII. Or if you're saving them as UFT-8 then save them as UTF-8 without BOM.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.