Last active
December 17, 2015 09:49
-
-
Save chen7897499/5590246 to your computer and use it in GitHub Desktop.
获取文件当前绝对路径 赋值到ROOT_PATH
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 | |
!defined('ROOT_PATH') && define('ROOT_PATH', str_replace('\\', '/', dirname(__FILE__))); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment