User Tools

Site Tools


uphp:functions:getcwd

getcwd

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Get the current directory

Description

string getcwd ( )

Return the current path

Parameters

None

Return Values

String containing the current path

Example

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

See Also

chdir() - Change the current directory

mkdir() - Make a directory

rmdir() - Remove a directory, with optional deletion of contents

uphp/functions/getcwd.txt · Last modified: 2021/09/13 05:57 (external edit)