getcwd

(FW >= 1.0)

getcwd - get current directory

Description

string getcwd()

This will return a string with the current path

Parameters

none

Return Value

string containing path

Examples

<? 
$path = getcwd();
chdir("/scripts/");
// do something
chdir($path); // change back to the old location
?>