Skip to content

Instantly share code, notes, and snippets.

@chen7897499
Last active December 17, 2015 09:49
Show Gist options
  • Save chen7897499/5590246 to your computer and use it in GitHub Desktop.
Save chen7897499/5590246 to your computer and use it in GitHub Desktop.
获取文件当前绝对路径 赋值到ROOT_PATH
<?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