eugeniu Posted May 27, 2009 Share Posted May 27, 2009 This is probably the wrong section to post this in, but I'm not sure where to post it, but I am using PHP, so I decided to post it here... I started a simple website a few days ago using simple PHP, HTML, and CSS code. It worked just fine, up until a day or two ago when I started using cookies for settings, to test things out. Since then, my website and all of it's pages show up almost completely corrupt online. You can see for yourself at http://mysevertime.com/. Most of the code is turned into foreign letters and invalid characters, while bits of it (like "<?php" and "<h1>MyServerTime.com</h1>") remain intact. It doesn't look like the server is even compiling the PHP either, because you can see remains of it in the source. I've tried reuploading and viewing from different domain names also connected to the same FTP, but the result is the same. I removed all of the php from my files to see if that would make things different, but it doesn't. I don't think there's anything wrong with my FTP client, since it uploads other files fine. My editor couldn't be the problem either; it also saves other files normally. What in the world is happening?! Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/ Share on other sites More sharing options...
BK87 Posted May 27, 2009 Share Posted May 27, 2009 site offline. Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-842820 Share on other sites More sharing options...
eugeniu Posted May 27, 2009 Author Share Posted May 27, 2009 It's working fine here. I looked at it through a proxy just now, and very strangely, it's showing more valid content on it, and at least compiles some of the PHP. Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-842827 Share on other sites More sharing options...
BK87 Posted May 27, 2009 Share Posted May 27, 2009 since we cannot see your site, can you upload some of the php code on here? Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-842851 Share on other sites More sharing options...
BK87 Posted May 27, 2009 Share Posted May 27, 2009 also you spelled your site name wrong, I see it now... its all in Chinese. Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-842852 Share on other sites More sharing options...
eugeniu Posted May 27, 2009 Author Share Posted May 27, 2009 Augh, I always make mistakes like these. Yes, the url is http://myservertime.com. It's all supposed to be English. For no apparent reason, it's showing up in Chinese, Japanese, other Asian languages, and various invalid characters. Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-842857 Share on other sites More sharing options...
Maq Posted May 27, 2009 Share Posted May 27, 2009 Augh, I always make mistakes like these. Yes, the url is http://myservertime.com. It's all supposed to be English. For no apparent reason, it's showing up in Chinese, Japanese, other Asian languages, and various invalid characters. When I click on the link, all I see is the number '1'. Even in the view source... Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-842863 Share on other sites More sharing options...
eugeniu Posted May 27, 2009 Author Share Posted May 27, 2009 Sorry Maq, you checked right when I was testing out different things. It's back to what it originally was now. Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-842867 Share on other sites More sharing options...
eugeniu Posted May 27, 2009 Author Share Posted May 27, 2009 I also emailed my host, GoDaddy, about this and have just received a response: Thank you for contacting Online Support. Upon review of the issue it appears that this is going to be an issue with the scripting of the page. Unfortunately we would be unable to provide assistance with this issue as we are unable to provide any scripting support. I apologize for any inconvenience this may cause. I don't see how this is a scripting issue at all. To prove it, I replaced the site contents with a fresh copy of WordPress, and got the exact same issue. Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-843474 Share on other sites More sharing options...
eugeniu Posted May 27, 2009 Author Share Posted May 27, 2009 Sorry for the triple post; the edit button has disappeared. I figured out what the problem is. Apparently, the tiny button that enabled editing in Unicode was selected on my editor for my header file, which ultimately screwed up the entire website. And it still showed up corrupted when I tried to install a different script because my caches on Firefox, Chrome, Safari, Opera, and Internet Explorer all decided not to refresh. Grr... Thanks for all the help everyone. Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-843576 Share on other sites More sharing options...
grissom Posted May 27, 2009 Share Posted May 27, 2009 Don't feel alone, I've done that too. It's a real pi**er. Quote Link to comment https://forums.phpfreaks.com/topic/159794-page-content-converted-to-incorrect-characters-for-no-reason/#findComment-843662 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.