Peng Posted December 21, 2008 Share Posted December 21, 2008 I just moved from old hosting to new hosting. I haven't edited the index.php (http://san.pengguo.com/index.php) or anything. I tried to click "start", "previous", and any of menu links, they all keep going back to index.php or didn't go anywhere… my .htaccess is completely blank. Both old hosting and new hosting has same PHP version. You can check the codes here… I wonder, what's going on? Quote Link to comment https://forums.phpfreaks.com/topic/137932-links-keep-going-back-to-indexphp/ Share on other sites More sharing options...
premiso Posted December 21, 2008 Share Posted December 21, 2008 Register_globals is probably turned off on the new hours. Chances are you need to re-do your code and code for that. Quote Link to comment https://forums.phpfreaks.com/topic/137932-links-keep-going-back-to-indexphp/#findComment-720891 Share on other sites More sharing options...
Peng Posted December 21, 2008 Author Share Posted December 21, 2008 Holy poop. You are right. I had to put in .htaccess: php_flag register_globals on Quote Link to comment https://forums.phpfreaks.com/topic/137932-links-keep-going-back-to-indexphp/#findComment-720898 Share on other sites More sharing options...
premiso Posted December 21, 2008 Share Posted December 21, 2008 Holy poop. You are right. I had to put in .htaccess: php_flag register_globals on I would highly not recommend that and recommend you fix the code. Register_globals is off for security reasons. Quote Link to comment https://forums.phpfreaks.com/topic/137932-links-keep-going-back-to-indexphp/#findComment-720900 Share on other sites More sharing options...
redarrow Posted December 21, 2008 Share Posted December 21, 2008 So in essence you need your code recoded, looks like it all php 4 then. Had a quick look you need to learn the $_GET[''] and $_POST[''] unfortunately there so much code your need to convert to php5. This is for security purpose, but at the same time were all moving to php6 soon and with the code you currently got wont work as php6 has globels permanently off. And due to the credit crunch, every hosting company will upgrade wait and see, it cumming, they could not afford to not upgrade these days. The credit crunch is very bad, But i am hoping it get those host off there backside and update there version's off php and mysql one and fore all. Quote Link to comment https://forums.phpfreaks.com/topic/137932-links-keep-going-back-to-indexphp/#findComment-720901 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.