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 367 views
1 answer 345 views
345 views asked Apr 12, 2015 by avibootz
4 answers 637 views
637 views asked May 23, 2018 by avibootz
2 answers 309 views
309 views asked Oct 13, 2016 by avibootz
...