Conversion from php5 to php7

A

Anonymous

Guest
I am trying to make a CPPS on my LAMP server, but these files are written in php 5 and therefore don't run.
Would anyone be willing to lend me a hand and convert these for me?

The main functions that are incompatible are the functions using mysql like mysql_connect(); and mysql_select_db();
 

Attachments

  • php5code.zip
    10.3 KB · Views: 440
That's a major assignment as the old mysql statements are gone and can't just be searched and replaced (largely depending on the structure of your database any way).

You will have to:

Learn to do the conversion yourself
Hire someone to do it for you

You could see if you can run your site on an older version of php while this goes on.
 
I might just install PHP5.5 on my server then. Only one other small script will need to be converted to php 5.5 so this wont be much of an issue. Thanks for the reccomendation anyway
 
There are more recent versions of php to load, but you will have to get the script converted since php will stop supporting earlier versions than 7, hence the "while [the conversion takes place]".

Since it's only one script, you might find it easy; are you sure that it's only "one small script"?
 
Back
Top