PHP4 vs PHP5

I have a site that is completely written in PHP4 - a supported version on my hosting at the time. After a ton of time in this language, I came to see that PHP5 has a lot of things that I think would be useful to me.

Two questions:

  • Switching my hosting to PHP5 can seriously damage existing PHP4 scripts?

  • Is PHP5 standard, or are most people still using PHP4?

see also

Difference between php 4 and php 5?

+3
source share
6 answers
  • / PHP4. , - , , , , .

  • PHP5 ( ) , . , PHP4, , COBOL. PHP5

+9

PHP , .

+6

, PHP5 .

. , , . , .

error_reporting E_ALL, .

+4

, , .

+4

, , PHP4 . , php4 , .

PHP 4 2007-12-31. PHP 5.2. - PHP 4. - Php

+3

Most headaches will come from the Op php4 model, namely: constructor names and method access restrictions. Although solving these problems is likely to make your code work. Ultimately, you can take advantage of the new OO engine introduced in php5 by doing some refactoring.

+1
source

Source: https://habr.com/ru/post/1705894/


All Articles