Query: chdir
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CHDIR(3) 1 CHDIR(3) chdir - Change directorySYNOPSISbool chdir (string $directory)DESCRIPTIONChanges PHP's current directory to $directory.PARAMETERSo $directory - The new current directoryRETURN VALUESReturns TRUE on success or FALSE on failure.ERRORS/EXCEPTIONS Throws an error of level E_WARNING on failure.EXAMPLESExample #1 chdir(3) example <?php // current directory echo getcwd() . " "; chdir('public_html'); // current directory echo getcwd() . " "; ?> The above example will output something similar to: /home/vincent /home/vincent/public_htmlNOTESNote When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script that is being executed.SEE ALSOgetcwd(3). PHP Documentation Group CHDIR(3)
Related Man Pages |
---|
fchdir(2) - redhat |
chdir(2) - linux |
chdir(2) - centos |
chdir(2) - minix |
is_dir(3) - php |