Root Directory Path of a PHP

#Get the document root –

$_SERVER[‘DOCUMENT_ROOT’]

#Get the current file’s folder

__DIR__

4 thoughts on “Get Root Directory Path of a PHP project

  1. Pingback: gym equipment shop
  2. Pingback: Cannabis

Leave a Reply