Forum help and support
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
Latest News
Hackers target the UN
13/08/07 – Sections of the United Nations homepage have been taken offline following an attack by hackers. The page that is reserved for comments made by the Secretary General, Ban Ki-Moon, were vandalised with writing blaming the US and Israel for the deaths of children.
Be careful what you blog, it could cost you your job!
29/03/07 - According to the business social network Viadeo personal details on blogs or sites such as MySpace are playing a larger role in the candidate selection process. More and more frequently what a person publishes about themselves on the internet is being taken into account by recruiters.
Look away now! Code of conduct suggests content warnings for blogs
10/04/07 – A draft blogging code of conduct has been prepared which recommends that readers should be warned before reading posts that contain "crude language". It was developed by Tim O'Reilly, a pioneer of the blogsphere, and follows the threats and harassment made to US developer Kathy Sierra via blogs.

