Ricky55 Posted August 11, 2013 Share Posted August 11, 2013 Hi Hopefully one of you guys can help me. My knowledge of PHP is beginner and the Dev that I use is on holiday. Just moved a clients website over to a new host and one part of it is not working. We have these php price calculator scripts that use the function import_request_variables which having turned on error reporting I can see this is what's causing the problem. Having done a quick search online I can see that this is no longer valid in PHP 5.4 is there a quick way of replacing this with something that is valid in PHP 5.4? The line I have is import_request_variables('gp'); Any help as always very much appreciated! Thanks Richard Quote Link to comment https://forums.phpfreaks.com/topic/281054-import-request-variables-in-php-54/ Share on other sites More sharing options...
kicken Posted August 11, 2013 Share Posted August 11, 2013 extract($_REQUEST);Would probably have the same overall effect. You should however have your developer update the code to no longer need either of these. Quote Link to comment https://forums.phpfreaks.com/topic/281054-import-request-variables-in-php-54/#findComment-1444431 Share on other sites More sharing options...
Ricky55 Posted August 11, 2013 Author Share Posted August 11, 2013 Thanks mate that appears to have worked. Very much appreciated. Why should this be replaced? Quote Link to comment https://forums.phpfreaks.com/topic/281054-import-request-variables-in-php-54/#findComment-1444437 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.