How do you get the current working directory in PHP?

In: PHP
[Edit]

Getting the working directory

$curr_dir = getcwd();

Improve Answer Discuss the question "How do you get the current working directory in PHP?" Watch Question

First answer by ID1445535780. Last edit by Davinci27. Contributor trust: 4 [recommend contributor]. Question popularity: 12 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > PHP > How do you get the current working directory in PHP?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Print Working Directory?