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 173 views
2 answers 139 views
1 answer 322 views
2 answers 231 views
...