Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
code suddenly doesnt work correctly anymore on 1and1 server but is still fine local
Old 10-09-2009, 03:18 PM code suddenly doesnt work correctly anymore on 1and1 server but is still fine local
Average Talker

Posts: 27
Trades: 0
hi all

about 6 or 7 months ago i launched a site written in php with a cms by myself on 1and1 business hosting. the site has several php powered features including a news section where an article is displayed in full, then on the side there is a list of all articles which link to that news page passing a news_id parameter so that article is loaded and displayed.

if the url loaded is just news.php then it displays the most recent article, but if a parameter is passed such as news.php?news_id=1 then it would load the article with news_id of 1. this has been working fine until recently.

if i now load news.php it displays the most recentl article and displays the list of articles down the side and their links correctly. but if i load news.php with a parameter such as url news.php?news_id=5 then it will load the list of articles but for the hyperlinks it creates for each, they are all the wrong parameter id's and therefore when clicked pass the wrong parameter into the url. this has always worked fine up until now, yet it still worked fine tested locally on my desktop's apache installation.

at the same time in the cms there is also problems when updating or deleting the news records too, again it does neither yet adding an item still works fine. again, this has always worked fine up til about the same til and still works fine when i test on my desktop apache installation locally.

has anyone else ever experienced anything similar? could it be that there has been a change on the server by 1and1 for this to suddenly stop work or are there any other explanations as to why? seems odd that if it were my code then it would suddenly work fine for months and then stop working on the host server but still work everywhere else!

the website is www.wolfieswinebar.co.uk

thanks
gavrd1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-09-2009, 04:27 PM Re: code suddenly doesnt work correctly anymore on 1and1 server but is still fine loc
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
How are you getting the values of the URL parameters within your script? Is it $_GET['news_id'] or $news_id?

They could have upgraded the php version on the server and/or disabled the register globals. If your not using the super globlas (GET/POST/COOKIE) then you are going to have to edit your scripts, or override the register globals setting in php.ini (not recomended)
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is online now
Reply With Quote
View Public Profile
 
Old 10-09-2009, 04:39 PM Re: code suddenly doesnt work correctly anymore on 1and1 server but is still fine loc
Average Talker

Posts: 27
Trades: 0
Am using the superglobals like $_get and $_post to pass the information. I'll have a look their php settings.

My first thoughts have been that it must be a change their end as I've never known code suddenly stop working like that!
gavrd1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to code suddenly doesnt work correctly anymore on 1and1 server but is still fine local
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37957 seconds with 12 queries