Created
December 28, 2016 03:39
-
-
Save mmmpa/f805ff86ce3c90ddaac4521ef8168192 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| $path = $_SERVER["SCRIPT_FILENAME"]; | |
| if(preg_match("/\.html$/", $path)){ | |
| chdir(dirname($path)); | |
| return require($path); | |
| } | |
| return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment