# Inotify

# Introduction

The inotify extension exposes the inotify functions inotify_init(), inotify_add_watch() and inotify_rm_watch().

As the C inotify_init() function returns a file descriptor, PHP's inotify_init() returns a stream resource, usable with standard stream functions, like stream_select(), stream_set_blocking() and fclose(). inotify_read() replaces the C way of reading inotify events.

- Installing/Configuring
  - Installing/Configuring
  - Resource Types
- Predefined Constants
- Inotify Functions
  - inotify_add_watch — Add a watch to an initialized inotify instance
  - inotify_init — Initialize an inotify instance
  - inotify_queue_len — Return a number upper than zero if there are pending events
  - inotify_read — Read events from an inotify instance
  - inotify_rm_watch — Remove an existing watch from an inotify instance

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open