Conversion from php5 to php7

Forum to require and offer php jobs. Are you searching for php developers to make or complete your php script ? This place is for you.

Moderators: egami, macek, gesf

Post Reply
Bailwillharr
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Apr 04, 2017 12:03 pm

Tue Apr 04, 2017 12:12 pm

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
Convert to PHP7
(10.27 KiB) Downloaded 21 times

User avatar
hyper
php-forum Active User
php-forum Active User
Posts: 406
Joined: Mon Feb 22, 2016 5:52 pm

Tue Apr 04, 2017 3:58 pm

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.

Bailwillharr
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Apr 04, 2017 12:03 pm

Wed Apr 05, 2017 8:05 am

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

User avatar
hyper
php-forum Active User
php-forum Active User
Posts: 406
Joined: Mon Feb 22, 2016 5:52 pm

Wed Apr 05, 2017 8:25 am

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"?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest