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 368 views
1 answer 350 views
350 views asked Apr 12, 2015 by avibootz
4 answers 642 views
642 views asked May 23, 2018 by avibootz
2 answers 315 views
315 views asked Oct 13, 2016 by avibootz
...