PHP Knowledge

  • what is PHP

  • What is PHP class
  • Smarty PHP
  • PHP Calendar

  • PHP delete
  • PHP count

  • PHP Directory
  • php echo
  • php exec
  • PHP explode
  • PHP fopen

  • PHP Form
  • PHP get

  • PHP If
  • PHP list
  • php login
  • PHP LOOP
  • PHP Random
  • PHP Redirect
  • PHP replace
  • PHP session
  • PHP sort
  • PHP split
  • php substr
  • PHP Syntax
  • PHP time

  • PHP upload
  • php URL
  • PHP version
  • PHP Cookie
  • PHP Global
  • php LDAP
  • PHP list
  • php strip
  • PHP template
  • php PEAR
  • PHP md5
  • PHP ini
  • PHP FTP
  • More others

    Javascript
    CSS
    PHP

     

    PHP Directory


    PHP Directory

    PHP Directory Functions

    PHP Directory Introduction

    The directory functions allow you to retrieve information about directories and their contents.

    Installation

    The directory functions are part of the PHP core. There is no installation needed to use these functions.

    PHP Directory Functions

    PHP : indicates the earliest version of PHP that supports the function.

    Function

    Description

    PHP

    chdir()

    Changes the current directory

    3

    chroot()

    Changes the root directory of the current process

    4

    dir()

    Opens a directory handle and returns an object

    3

    closedir()

    Closes a directory handle

    3

    getcwd()

    Returns the current directory

    4

    opendir()

    Opens a directory handle

    3

    readdir()

    Returns an entry from a directory handle

    3

    rewinddir()

    Resets a directory handle

    3

    scandir()

    Lists files and directories inside a specified path

    5

    PHP Directory Constants

    PHP : indicates the earliest version of PHP that supports the constant.

    Constant

    Description

    PHP

    DIRECTORY_SEPARATOR

     

    3

    PATH_SEPARATOR

     

    4

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • Javascript |