L
L
Lyuba2018-03-24 20:48:45
PHP
Lyuba, 2018-03-24 20:48:45

Update php version?

Tell me, my site works on php 5.2 on hosting, it is possible to enable, for example, php 7.
If this is done, will the site work? Or do I need to change something on the site to upgrade to the new version?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
index0h, 2018-03-24
@index0h

If this is done, will the site work?

If outdated or disabled functionality is used, the places on your site where they are used will be broken.
Of course you need.

O
Oleg, 2018-03-24
@Austin_Powers

Migrating php5.x to php7.x . "Backwards incompatible changes" is something you need to consider and eliminate from your code if you plan to upgrade to a more recent version.

I
ipokos, 2018-03-24
@ipokos

It is correct to make a test server for such things (usually a subdomain of the main site, often free. for good, test all the functionality of the site.
Basically, when upgrading the php version, backward compatibility is preserved i.e. What works on the old version should also work on the new one. But there are also incompatible changes, to which Oleg gave a link .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question