How can I set an old version of php in Xampp on localhost?

Asked

Viewed 9,192 times

5

I’m taking a course in PHP and is appearing errors due to version PHP Xampp be more updated than the version PHP course.

Question: It is possible without too much time loss to set a previous PHP version that is running to get rid of these version errors?

  • 2

    If there are mistakes, correct them.. What you want to do is sweep dirt under the carpet.. Depending on the types of errors, such as "Warning errors" or "deprecated error", it is possible to configure at runtime ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);

  • 1

    Do not use deprecated functions!

1 answer

5

The short answer is: don’t do this.

XAMPP is built around a version of PHP to ensure that everything that comes as it works properly. The most appropriate would be to search for a "new" version of it with the PHP version you want here. (I’m assuming you’re in windows environment)

KICK: If you really want to keep your version of XAMPP, and change only the version of PHP, I think that you can download the binaries that you want here, and change them in the PHP folder that is probably in C:\xampp\php, and then change their settings accordingly, but I confess that this should bring more problems than solutions, if it actually works. My advice is to download a stable corresponding (XAMPP) version.

  • 1

    updating binaries, in fact "should bring more problems than solutions"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.