Get the current working directory in PHP

Description

The following code shows how to get the current working directory.

Example


<?php
   echo getcwd()
?>




















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip