getcwdGets the current working directory Description
stringfalse getcwd()
Gets the current working directory. ParametersThis function has no parameters. Return Values
Returns the current working directory on success, or
On some Unix variants, getcwd will return
Examples
Example #1 getcwd example
The above example will output something similar to: /home/didou /home/didou/cvs NotesCaution
If the PHP interpreter has been built with ZTS (Zend Thread Safety) enabled, the current working directory returned by getcwd may be different from that returned by operating system interfaces. External libraries (invoked through FFI) which depend on the current working directory will be affected. See Also
|