Nick11380 Posted September 9, 2011 Share Posted September 9, 2011 The problem I am having is bizarre. The PHP code on both of these pages displays the gold price in grams and ounces. http://www.goldprices.org.uk/gold-1/ http://www.goldspotprice.org.uk/gold-2/ /gold-2 works perfectly. /gold-1 breaks when the page is refreshed. As I say, the code is absolutely identical on both pages, however one domain breaks the code and the other does not seem to break the code. Does anyone have a clue what is happening here? Quote Link to comment https://forums.phpfreaks.com/topic/246768-code-breaking-on-refresh/ Share on other sites More sharing options...
gristoi Posted September 9, 2011 Share Posted September 9, 2011 not a clue. Mainly because you have posted absolutely no code. Quote Link to comment https://forums.phpfreaks.com/topic/246768-code-breaking-on-refresh/#findComment-1267294 Share on other sites More sharing options...
Nick11380 Posted September 9, 2011 Author Share Posted September 9, 2011 Isn't this entirely irrelevant if the code on both pages is identical? It's something outside of the code that is breaking this, and I'm now convinced it's the domain's i.p that has been blocked. Quote Link to comment https://forums.phpfreaks.com/topic/246768-code-breaking-on-refresh/#findComment-1267464 Share on other sites More sharing options...
Maq Posted September 9, 2011 Share Posted September 9, 2011 I don't even see the gold prices listed on the initial load for gold-1. What do you mean gold-1 breaks? Blank screen? Errors? Quote Link to comment https://forums.phpfreaks.com/topic/246768-code-breaking-on-refresh/#findComment-1267473 Share on other sites More sharing options...
KevinM1 Posted September 9, 2011 Share Posted September 9, 2011 You do realize that we can't solve any problems you're having with your PHP code without SEEING that code, right? Quote Link to comment https://forums.phpfreaks.com/topic/246768-code-breaking-on-refresh/#findComment-1267475 Share on other sites More sharing options...
Nick11380 Posted September 10, 2011 Author Share Posted September 10, 2011 Thanks to all for their help. Posting the code would be time wasting because the code on both sites is identical therefore the coding is irrelevant (as it works on one site). I have managed to fix this by adding a php file to my website's root folder and then iframing it. I'm now thinking that this is a problem with WordPress as opposed to my website's i.p address. Quote Link to comment https://forums.phpfreaks.com/topic/246768-code-breaking-on-refresh/#findComment-1267721 Share on other sites More sharing options...
Pikachu2000 Posted September 10, 2011 Share Posted September 10, 2011 Very well, then. Thread moved to Miscellaneous. Quote Link to comment https://forums.phpfreaks.com/topic/246768-code-breaking-on-refresh/#findComment-1267733 Share on other sites More sharing options...
freelance84 Posted September 10, 2011 Share Posted September 10, 2011 Did you write the code? The two identical scripts may have only been written for one domain, might need to alter one of them accordingly? Quote Link to comment https://forums.phpfreaks.com/topic/246768-code-breaking-on-refresh/#findComment-1267741 Share on other sites More sharing options...
Pikachu2000 Posted September 10, 2011 Share Posted September 10, 2011 Nah, the OP has made it very clear hat this is not in any way, shape, or form, a problem with the code . . . Quote Link to comment https://forums.phpfreaks.com/topic/246768-code-breaking-on-refresh/#findComment-1267749 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.