Twister1004 Posted March 16, 2012 Share Posted March 16, 2012 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! Quote Link to comment https://forums.phpfreaks.com/topic/259077-some-weird-include-problem/ Share on other sites More sharing options...
requinix Posted March 16, 2012 Share Posted March 16, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/259077-some-weird-include-problem/#findComment-1328242 Share on other sites More sharing options...
Twister1004 Posted March 16, 2012 Author Share Posted March 16, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/259077-some-weird-include-problem/#findComment-1328278 Share on other sites More sharing options...
PFMaBiSmAd Posted March 17, 2012 Share Posted March 17, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/259077-some-weird-include-problem/#findComment-1328300 Share on other sites More sharing options...
Azarian Posted March 17, 2012 Share Posted March 17, 2012 Maybe your including something that is overriding some css and that is why both sources look the same? Quote Link to comment https://forums.phpfreaks.com/topic/259077-some-weird-include-problem/#findComment-1328325 Share on other sites More sharing options...
Twister1004 Posted March 17, 2012 Author Share Posted March 17, 2012 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! Quote Link to comment https://forums.phpfreaks.com/topic/259077-some-weird-include-problem/#findComment-1328542 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.