PHP: Change Current Working Directory
Every PHP script process has its own current working directory, files and directory are created under this directory by default if not otherwise specified. The default working directory of any php script is the home directory of the php owner or the current working directory returned by Linux shell command pwd. As most of the …