mysql database spitting out crazy characters!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bbaudoin
Forum Newbie
Posts: 5
Joined: Mon Sep 14, 2009 11:02 pm

mysql database spitting out crazy characters!

Post by bbaudoin »

hey,
I have a bunch images stored in a database. For some reason, that i can't figure out, the database started spitting out crazy characters. The problem is, I have a cropping tool on the back end of my site to be able to recrop your thumbnail and resave it. nNow, with these crazy characters popping up, it's started rendering the thumbnails black!!!
any thoughts?

these are the characters it's throwing in front of my image directory inexplicably:
images/thumbs/155954.jpg

ie:


I can't find what change I could have made to trigger this. it really makes no sense. There's no extra characters when you browse the database. What's wierd to is it worked for a bit, then stopped working. Also, my cropping script, I had it echo out where it was spitting out to image file too, at first, no extra characters, but if you hit the back button in the browser, then the forward button to return, the characters have miraculously appeared!!!!!!
goblins. :crazy:
Anybody ever had similar issues?


-Bayard
bbaudoin
Forum Newbie
Posts: 5
Joined: Mon Sep 14, 2009 11:02 pm

Re: mysql database spitting out crazy characters!

Post by bbaudoin »

just did some reading. perhaps its the editor i'm saving my php files with? i switched to aptana when it all started :( before, all these files were written in dreamweaver. Seems its something to do with the BOM and UTF-8. agggh! this is terrible.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: mysql database spitting out crazy characters!

Post by Ollie Saunders »

You can usually just tell your editor to stop inserting BOMs. There should be a setting somewhere.
Post Reply