php man page for chdir

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 directory

SYNOPSIS
bool chdir (string $directory)
DESCRIPTION
Changes PHP's current directory to $directory.
PARAMETERS
o $directory - The new current directory
RETURN VALUES
Returns TRUE on success or FALSE on failure.
ERRORS
/EXCEPTIONS Throws an error of level E_WARNING on failure.
EXAMPLES
Example #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_html
NOTES
Note 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 ALSO
getcwd(3). PHP Documentation Group CHDIR(3)
Related Man Pages
fchdir(2) - redhat
chdir(2) - suse
fchdir(2) - suse
is_dir(3) - php
rmdir(3) - php
Similar Topics in the Unix Linux Community
Could not chdir to home directory
What does ls /nosuchdir means ???
Could not chdir to home directory
implementing mkdir, chdir, mv, pwd inside a shell !
Could not chdir to home directory : I/O error