A common way to define the root of a web site in PHP

  • 2020-03-31 20:59:48
  • OfStack


define('BASE_PATH',str_replace('\','/',realpath(dirname(__FILE__).'/../')));

Related articles: