Created
March 9, 2018 15:54
-
-
Save syrm/57ff6ad63faa392b507a04a758cdccdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once realpath( | |
dirname($_SERVER['SCRIPT_FILENAME']) | |
. DIRECTORY_SEPARATOR | |
. str_repeat( | |
'..' . DIRECTORY_SEPARATOR, | |
substr_count( | |
preg_replace('#^./#', '', $_SERVER['SCRIPT_FILENAME']), | |
DIRECTORY_SEPARATOR | |
))) . '/vendor/autoload.php'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment