Jump to content

Recommended Posts

Hey guys!

 

Well this is actually kind of a weird problem I have been having, and not too sure why I'm getting this problem. I've tried a lot of stuff, and it doesnt seem like I've been able to find a solution. I've been trying for about a month.

 

Anyways, I have a website created with some OOP. Well, once I write an include statement to include a file, which then includes all my classes, it messes up my font, moves my website content down, and well.. it just does weird stuff.

 

However, once I comment the include out, the website looks normal again.

 

so basically, I can comment out the file itself and everything is just fine. But it only happens when I include my class files.

 

Any ideas or suggestions would be amazing! Thank you!

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/259077-some-weird-include-problem/
Share on other sites

There's some kind of output in one of those files that shouldn't be there.

 

Do a View Source on a bad page and see what's wrong. Odds are it's an error message but it could be something as innocent as whitespace in a bad place.

There's some kind of output in one of those files that shouldn't be there.

 

Do a View Source on a bad page and see what's wrong. Odds are it's an error message but it could be something as innocent as whitespace in a bad place.

 

I have looked at the source code with and without, and there is no difference. There is not an error, or any difference in code within the output.

I'll guess one or more of the files being included have the BOM characters. See this thread with a similar problem - http://www.phpfreaks.com/forums/index.php?topic=355677.msg1680666#msg1680666

 

This fixed my problem. Now I need to read about BOM >_<.

 

 

Thank you very much!

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.