Fix script manipulate image (upload goes on loop) - deprecated php login function

Končano Objavljeno pred 6 letoma/leti Plačilo ob prevzemu
Končano Plačilo ob prevzemu

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

JavaScript MySQL PHP

ID projekta: #14459024

Več o projektu

23 predlogov Oddaljen projekt Aktiven pred 6 letoma/leti

Dodeljeno:

rylkov

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

€8 EUR v 1 dnevu
(68 mnenj)
5.6

23 freelancerjev ponuja v povprečju za €24 na tem delu

shebkhan2007

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 Več

€29 EUR v 1 dnevu
(698 ocen)
7.2
sat12

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

€23 EUR v 1 dnevu
(315 ocen)
6.6
sr33raj

hello i can fix the script error after php upgrade ut will only take few hours

€20 EUR v 0 dneh
(135 ocen)
5.8
versacode

We are a group of electrical engineers and web developers. You will need to use mysqli_ or PDO functions instead of mysql_ to get rid of the warning, and we will be happy to do this for you. Relevant Skills and Experi Več

€30 EUR v 1 dnevu
(41 ocen)
5.4
rlo56467a9097547

Fix error on upload file script Relevant Skills and Experience php mysql Proposed Milestones €29 EUR - finish work

€29 EUR v 0 dneh
(33 ocen)
4.8
amjadali4888

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 Več

€23 EUR v 1 dnevu
(37 ocen)
4.7
irfan811

I have four years’ experience in multiple programming languages such as Python, PHP, MySQL, Ajax, Jquery, Symfony, Codeigniter and Wordpress, Shopify, Data Scraping. Relevant Skills and Experience My expertise lay in Več

€30 EUR v 1 dnevu
(11 ocen)
3.6
GervaiseT

Hello ! I have already completed similar projects in the past (upgrade SQL connection), so I should be able to help you ! Regards Relevant Skills and Experience PHP Expert Worked on similar projects in the past System Več

€20 EUR v 1 dnevu
(9 ocen)
3.7
alexandrsolodov

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.

€23 EUR v 5 dneh
(12 ocen)
3.6
ilatech

Migrating php5 code to php7, and fix issues. Relevant Skills and Experience I am not an expert in PHP, but I work from time to time with this language. Proposed Milestones €25 EUR - Complete the project Can you prov Več

€25 EUR v 10 dneh
(2 ocen)
0.7
qamrulhaque

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 Več

€8 EUR v 0 dneh
(1 Ocena)
0.0
kpstsp

Hello! I'm looked your script and error, I think you have another problem, cause 'Deprecated: ...' - it's only warning and not critical for your script work. Relevant Skills and Experience Python\PHP\Java programming Več

€23 EUR v 2 dneh
(0 ocen)
0.0
phoenix0066

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.

€23 EUR v 2 dneh
(0 ocen)
0.0
Lultu

Need to change your script to use mysqli_connect and similar mysqli functions instead of mysql_connect and other functions. I guess the database entry is not happening. Upload should work fine. Relevant Skills and Ex Več

€19 EUR v 3 dneh
(0 ocen)
0.0