I have a web page running online with PHP 7.0 and MySQL 5.6 in a cloud provider dedicated. The web works fine (I did it in a text editor of a file manager provided by the cloud provider).
Now, I want to have the web into my Linux computer (I'm using Kubuntu). I have installed Apache2 2.4, PHP 7.0 and MySQL and same code of the online web (just copy and paste). But the problem is that some pieces of code show an error that is not shown in online web, for example:
if ($_SESSION['var'] == true) { .. }
I know that is not really correct, but in my online web this works when this session variable doesn't exists. However, in my computer, this code shows an error. I have to change it for:
if (isset($_SESSION['var']) && $_SESSION['var'] == true) { .. }
And the error is resolved. This is not the only case, we also obtain errors about array_pop(), etc. I know that I should fix that but it's a lot of code and I want to find a solution on my computer to skip this errors like the web is skipping right now.
I have tried on my computer to install PHP 7.0 and PHP 7.2 but the errors still appear...
Sorry for my bad English, just trying the best.
Regards.