This code can help you update Drupal core to Drupal 7.67 and Drupal 8.7.1 easily.
Step:
- Place updatecore.php into the Drupal website folder.
- Browse http://xxxx.com/updatecore.php and waiting for a few seconds to a minute.
- After finish the update, you may need to go to http://xxxx.com/update.php and update the database.
- If your have installed dependencies using composer, you have to go to the terminal and run "composer update --with-dependencies"