Small bug needs amending in a PHP application
There’s a very low budget for this project so please do not read on if you’re immediately irked. :o)
My client has a recruitment shopping cart built in PHP that was built for him last year. It worked perfectly fine on his previous hosting account.
He has recently switched to Godaddy for his hosting and now there is a small problem that I cannot rectify.
I need the bug determined and fixed ASAP.
Here’s how it should (AND DID) work…
Customers submit information via my form – they also upload their CV.
The CV is uploaded to a folder on the server called “upload”. There is an option to turn this off in the admin section which my client uses – HE DOES NOT WANT ANYTHING UPLOADED TO THE SERVER (the previous PHP designer used a prebuilt solution so I guess that is why it’s there).
The CV is also e-mailed to the client along with the other fields that are completed on the online form.
Well as I said, this PHP application worked on my client’s previous hosting account.
After switching to GOdaddy, this is what happens…
Customer submits a form using the form – they also upload their CV.
The CV is uploaded to the default folder on the server – NOT the folder called “upload”. The option to turn this off in the admin is always ignored. So even if the option is set to “off”, the attachments are still uploaded to the server.
The e-mail that my client receives contains the information that is submitted to the form and the attachment. HOWEVER, the attachment arrives blank (incidentally, the file that is uploaded to the server (even though permission was not given for it to be uploaded there) contains the information.
Previously his hosting account had these settings:
Previous Host Provider: PHP Version 4.4.9 - Linux
Goaddy Provider: PHP Version [url removed, login to view] – Linux (I have upgrade my client to PHP Version 5.2.5 - Linux and I still get the same problem).
The following links are test applications so you can see the difference yourself.
Works correctly here: [url removed, login to view] (select a vacancy from the “Rail” for testing.)
Bug is experienced here (Godaddy hosting): [url removed, login to view] (select a vacancy from the “Rail” for testing.)
Both sites have a [url removed, login to view] file installed so that you can compare.
I have attached the two files that I believe are relevant for investigation.
Thanks for you time.