Query: getcwd
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETCWD(3) 1 GETCWD(3) getcwd - Gets the current working directorySYNOPSISstring getcwd (void )DESCRIPTIONGets the current working directory.RETURN VALUESReturns the current working directory on success, or FALSE on failure. On some Unix variants, getcwd(3) will return FALSE if any one of the parent directories does not have the readable or search mode set, even if the current directory does. See chmod(3) for more information on modes and permissions.EXAMPLESExample #1 getcwd(3) example <?php // current directory echo getcwd() . " "; chdir('cvs'); // current directory echo getcwd() . " "; ?> The above example will output something similar to: /home/didou /home/didou/cvsSEE ALSOchdir(3), chmod(3). PHP Documentation Group GETCWD(3)
Related Man Pages |
---|
cwd(3pm) - redhat |
getwd(3) - mojave |
getcwd(3) - netbsd |
getcwd(3) - osx |
getwd(3) - osx |
Similar Topics in the Unix Linux Community |
---|
getcwd: permission denied error |
shell-init: could not get current directory: getcwd: cannot access parent directories |
getcwd problem. |
Getcwd |
Getcwd performance issues |