PHP 手冊
上一頁 |  | 下一頁

# getcwd

(PHP 4 , PHP 5)

getcwd -- gets the current working directory

## Description

string getcwd ( void )

Returns the current working directory, or `FALSE` on failure.

示範 1.getcwd() example

`<?php // current directory echo getcwd() . "\n"; chdir('cvs'); // current directory echo getcwd() . "\n"; ?>`

This example will output something like:

    /home/didou
    /home/didou/cvs

See also chdir().

上一頁 | 最開頭 | 下一頁
closedir | 上一層 | opendir