Fix script manipulate image (upload goes on loop) - deprecated php login function
€8-30 EUR
Paid on delivery
Hi,
I have a script that stopped to work recently. No recently changes, except we tried to upgrate server to php 7.x and then reverted back to php 5.6
It shows error "Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in.. "
Basically the script works as follows:
- user select the effect/frame to add to their photo
- let users upload their image
- the script add the effects/frame and make it downloable/shared
Now when the user uploads the photo, it shows the deprecated error, and the upload goes on loop, I don't know if it does not complete the upload or does not start the step of adding effect/frame
Goal: You have to check, change the following php login function to a recent one:
$link = mysql_connect($cfg['sqlhost'], $cfg['sqluser'], $cfg['sqlpass']) or die("Could not connect.");
mysql_select_db($cfg['sqldb']) or die("Could not find database.");
mysql_query('SET NAMES utf8');
mysql_query("SET CHARACTER SET utf8");
and then, if this not fix the loop while uploading, investigate into the script (basically 1 file page) to fix the error.
Feel free to ask further info (or live example) in private comments, thanks
Project ID: #14459024
About the project
Awarded to:
I can convert your PHP code to use more modern MySQL libraries. Relevant Skills and Experience I wrote many PHP scripts with MySQL. Proposed Milestones €8 EUR - Project Milestone
23 freelancers are bidding on average €24 for this job
Hey. I can upgrade your current db connection to mysqli it will work and it will be future proof as well. lets discuss this more Relevant Skills and Experience You can also review my profile for my past projects ht More
there needs to make changes in code. you have to use mysqli Relevant Skills and Experience I amphp, joomla, virtuemart expert having 5 years of experience. Proposed Milestones €23 EUR - work
Fix error on upload file script Relevant Skills and Experience php mysql Proposed Milestones €29 EUR - finish work
Greetings I have read your job description and I want to talk about more that regards that I can do that project within the time frame Regards Amjad Ali Relevant Skills and Experience PHP,MYSQLI Proposed Milesto More
Hello. I constantly work with the technologies specified in the job description. I need more information, but in any case, working for me is not a problem.
mysql has been replaced with mysqli in php 7. I think your project is using core php instead of any php framework that's why it is generating error on php update. Relevant Skills and Experience I have expertise in PHP More
Just try to suppress the error reporting with error_reporting(0); for that piece and see if it works. May be it just ruins redirect/headers or something like that. Stay tuned, I'm is still working on this proposal.