   #PHP Manual Directory functions closedir opendir

   PHP Manual
   Prev  Next
   ______________________________________________________________________

                                    getcwd

   (PHP 4 )
   getcwd -- gets the current working directory

Description

   string getcwd ( void )

   Returns the current working directory.

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

   This example will output:
/home/didou
/home/didou/cvs

   See also chdir().
   ______________________________________________________________________

   Prev     Home    Next
   closedir  Up  opendir
