How to define the base directory constant in PHP

1 Answer

0 votes
define('BASEDIR', __DIR__); 

echo BASEDIR;

  
/*
run:
   
C:\xampp\htdocs\answersmind.com 
   
*/

 



answered Oct 9, 2017 by avibootz

Related questions

1 answer 273 views
1 answer 263 views
263 views asked Apr 12, 2015 by avibootz
4 answers 475 views
475 views asked May 23, 2018 by avibootz
2 answers 215 views
215 views asked Oct 13, 2016 by avibootz
...