View this site in pounds View this site in dollars

Forum help and support

To the forums

PHP script not working on new server.

Page 1 of 1

#1 by barnet-nas1
Our charity has spent over 2 years using a PHP code in our pages, to power our website.

Since moving over to the new server, our PHP script is not working, and hense the content of our website is not viewable.

We have a PHP script on our index page, which diplays the other page contents with in a cell in the index page. so index.php?p=whatis would open the content of whatis.php, with in a cell in index.php.

I have had the same problem on another server after they upgraded there PHP software, however they found the fault, and corrected it with in 24 hours.

I think that the problem was some thing to do with: Register globals - needing to be switched on.

We really need the website, up and running. I also do not see why we should have to change the format of our website, since it has been working perfectly for nearly 3 years now!
Posted on Tuesday, 25th September 2007 at 12:11pm
#2 by admin
We tried turning the global variables on for you and it made no difference to your site when we tested it. It has now been turned back off as it poses security risk when enabled.

Could the reason that your site is not working be caused by something else?

Sorry we can't be of any further help at this stage.
Posted on Tuesday, 25th September 2007 at 3:47pm
#3 by barnet-nas1
Sorry but the page links were incorrectly assigned, which ment that clicking on the links wouldn't have worked any way. I have corrected the links now, so hopefully if you turn on the global variables again and test it it should work this time. I know that this is part of the problem affecting our script.

You can see a website like this working at: http://www.uk-chef.com/index2.php .
For comparison you can look at http://www.uk-chef.com/test.php, and the config file which corrects the same problem is based at http://www.uk-chef.com/php.ini

Hope that you can get our website working again as the hosts of the above website only took 24 hours to fix that website after changing their php version.
Posted on Wednesday, 26th September 2007 at 1:21pm
#4 by admin
We have taken a look over your PHP, and amended it slighly. Your website now looks to be working.
I hope that helps.
Posted on Wednesday, 26th September 2007 at 2:22pm
#5 by barnet-nas1
Sorry, I tought that you ment you had amended the php for our account, not on the page...

while changing some links, I had to upload the index page again, and have not changed the PHP on my page. Could you amend the php again and post the amended php script, so that I can paste it into my template.

Thanks
Posted on Saturday, 29th September 2007 at 12:34am
#6 by admin
We have amended it for you, all it requires is...

$p = $_REQUEST['p'];

... which is on the line above the rest of the php you have in the index.php file.
Posted on Monday, 1st October 2007 at 10:50am

First | Prev | 1 | Next | Last

Displaying posts 1 - 6 of 6

Back to the topic index | To the forums

Your account

Latest News

(RSS)

VoIP provider cuts the cost of Mother's Day

12/03/2007 – The internet telephone provider Tpad has cut its charges for calls to anywhere in the world for Mother's Day. Anybody who uses the VoIP provider will receive 50% off their call charges for the 18 March, Mothering Sunday, irrespective of where in the world they call.

UK Mobile internet usage soars

30/01/2007- Mobile phones were used to access the internet in the UK 15.9 million times in December 2006. The Mobile Data Association (MDA) said that this was an increase of nearly a million from November 2006.

Netflix to bring Internet TV into the living room

The US DVD rental service Netflix is ready to release a wave of set-top boxes which will allow users to download programmes and movies over the internet to their home computer which can then be watched on a home television via the box. The move is an attempt to boost its appeal over its rivals namely Apple TV and the Vudu Box as well as other cable services.