PHP4 - PHP 4 script upgrade to 5.4 or 6
- or -
Post a project like this3695
$$
- Posted:
- Proposals: 11
- Remote
- #423526
- Awarded
♛React, PHP, Laravel, WordPress, Logo design, App Developer, AWS expert on PPH.
London
506668775194058118284140212411950456996523930595130614010511492
Description
Experience Level: Intermediate
Estimated project duration: 1 day or less
General information for the website: Online spa hotel agent
Kind of development: Customization of existing website
Num. of web pages/modules: 1
Description of every page/module: This is for a script that was built for an enquiry form using PHP4.
The enquiry form pulls in data from between 2-4 database tables to prepopulate the enquiry form with the relevant information. The user then completes the rest of the form, which is then submitted to a table and also emailed to a specified email address.
See here for an example - http://www.luxury-spa-breaks.com/spa-enquiry/index.php?id=42&pack=1
THE ISSUE:
We recently received a notification from our hosting company saying PHP4 was soon not to be supported anymore and we had to upgrade to either 5.4 or 6 (but I'm thinking 6 would future proof it for longer?).
Upon changing this over within the control panel / global PHP version to 5.4, the scripts in the enquiry form no longer worked - please see attachment
The guy who originally wrote the script has identified the issue (see below) however due to personal reasons he is no longer able to work on this issue.
Description of requirements/features: PHP5 doesn’t allow for registered global variables, hence in the URL your passing id and pack to the php engine. In PHP4 script would then see $id and know that this is equal to the value in the url, but in PHP5 it doesn’t.
See:
http://php.about.com/od/finishedphp1/qt/How-To-Fix-It-If-Your-Variables-Are-Not-Passing.htm
I’ve tried putting in
$id = $_GET[‘id’];
$pack = $_GET[‘pack’];
at the beginning of the php script but for some reason I can’t work out it still doesn’t know the values within.
Extra notes:
Kind of development: Customization of existing website
Num. of web pages/modules: 1
Description of every page/module: This is for a script that was built for an enquiry form using PHP4.
The enquiry form pulls in data from between 2-4 database tables to prepopulate the enquiry form with the relevant information. The user then completes the rest of the form, which is then submitted to a table and also emailed to a specified email address.
See here for an example - http://www.luxury-spa-breaks.com/spa-enquiry/index.php?id=42&pack=1
THE ISSUE:
We recently received a notification from our hosting company saying PHP4 was soon not to be supported anymore and we had to upgrade to either 5.4 or 6 (but I'm thinking 6 would future proof it for longer?).
Upon changing this over within the control panel / global PHP version to 5.4, the scripts in the enquiry form no longer worked - please see attachment
The guy who originally wrote the script has identified the issue (see below) however due to personal reasons he is no longer able to work on this issue.
Description of requirements/features: PHP5 doesn’t allow for registered global variables, hence in the URL your passing id and pack to the php engine. In PHP4 script would then see $id and know that this is equal to the value in the url, but in PHP5 it doesn’t.
See:
http://php.about.com/od/finishedphp1/qt/How-To-Fix-It-If-Your-Variables-Are-Not-Passing.htm
I’ve tried putting in
$id = $_GET[‘id’];
$pack = $_GET[‘pack’];
at the beginning of the php script but for some reason I can’t work out it still doesn’t know the values within.
Extra notes:
Andrew M.
100% (2)Projects Completed
1
Freelancers worked with
1
Projects awarded
100%
Last project
28 Jul 2014
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies