How to get the current working directory in PHP

1 Answer

0 votes
$current_directory = getcwd();
  
echo $current_directory ; 




/*
run:

/home

*/

 



answered Jan 29, 2022 by avibootz

Related questions

1 answer 263 views
2 answers 283 views
1 answer 412 views
2 answers 353 views
...