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();
Conversion from php5 to php7
Moderators: egami, macek, gesf
-
- New php-forum User
- Posts: 2
- Joined: Tue Apr 04, 2017 12:03 pm
- Attachments
-
- php5code.zip
- Convert to PHP7
- (10.27 KiB) Downloaded 67 times
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.
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.
-
- New php-forum User
- Posts: 2
- Joined: Tue Apr 04, 2017 12:03 pm
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"?
Since it's only one script, you might find it easy; are you sure that it's only "one small script"?