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 269 views
2 answers 289 views
1 answer 413 views
2 answers 358 views
...