cooldude832 Posted May 17, 2007 Share Posted May 17, 2007 I have docs that go back and forth between php/mysql and use require(); sometimes I randomly get  at the start of the <?php block and I really don't know why I usually can mess around with stuff and clear it out, but its annoying. Quote Link to comment https://forums.phpfreaks.com/topic/51864-anyone-want-to-explain-why-my-docs-get-%C3%AF%C2%BB%C2%BF-at-the-start-of-my-php/ Share on other sites More sharing options...
hitman6003 Posted May 17, 2007 Share Posted May 17, 2007 what editor are you using? It may be inserting them when you are editing your code. Quote Link to comment https://forums.phpfreaks.com/topic/51864-anyone-want-to-explain-why-my-docs-get-%C3%AF%C2%BB%C2%BF-at-the-start-of-my-php/#findComment-255623 Share on other sites More sharing options...
veridicus Posted May 17, 2007 Share Posted May 17, 2007 I see that when mixing UTF-8 and Latin-1 encoded files. Pick one, stick to it, and make sure your doc type at the top of the output matches. Quote Link to comment https://forums.phpfreaks.com/topic/51864-anyone-want-to-explain-why-my-docs-get-%C3%AF%C2%BB%C2%BF-at-the-start-of-my-php/#findComment-255626 Share on other sites More sharing options...
cooldude832 Posted May 17, 2007 Author Share Posted May 17, 2007 Notepad ++ and i've had white space issues before trying to apply headers, but even if i copy the whole doc to notepad and save it in that (that fixed the headers) I still get errors. Quote Link to comment https://forums.phpfreaks.com/topic/51864-anyone-want-to-explain-why-my-docs-get-%C3%AF%C2%BB%C2%BF-at-the-start-of-my-php/#findComment-255627 Share on other sites More sharing options...
cooldude832 Posted May 17, 2007 Author Share Posted May 17, 2007 I've isolated it to: require('mysql_include.php'); //MySQL connection mysql_include is used on other pages without error any clue? Quote Link to comment https://forums.phpfreaks.com/topic/51864-anyone-want-to-explain-why-my-docs-get-%C3%AF%C2%BB%C2%BF-at-the-start-of-my-php/#findComment-255644 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.