<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Remove an existing watch from an inotify instance</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.inotify-read.html">inotify_read</a></div> <div class="next" style="text-align: right; float: right;"><a href="book.mime-magic.html">Mimetype</a></div> <div class="up"><a href="ref.inotify.html">Inotify Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.inotify-rm-watch" class="refentry"> <div class="refnamediv"> <h1 class="refname">inotify_rm_watch</h1> <p class="verinfo">(PECL inotify >= 0.1.2)</p><p class="refpurpose"><span class="refname">inotify_rm_watch</span> — <span class="dc-title">Remove an existing watch from an inotify instance</span></p> </div> <div class="refsect1 description" id="refsect1-function.inotify-rm-watch-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>inotify_rm_watch</strong></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$inotify_instance</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$watch_descriptor</code></span> )</div> <p class="para rdfs-comment"> <span class="function"><strong>inotify_rm_watch()</strong></span> removes the watch <em><code class="parameter">watch_descriptor</code></em> from the inotify instance <em><code class="parameter">inotify_instance</code></em>. </p> </div> <div class="refsect1 parameters" id="refsect1-function.inotify-rm-watch-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">inotify_instance</code></em></span> <dd> <p class="para"> Resource returned by <span class="function"><a href="function.inotify-init.html" class="function">inotify_init()</a></span> </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">watch_descriptor</code></em></span> <dd> <p class="para"> Watch to remove from the instance </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.inotify-rm-watch-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 seealso" id="refsect1-function.inotify-rm-watch-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.inotify-init.html" class="function" rel="rdfs-seeAlso">inotify_init()</a> - Initialize an inotify instance</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.inotify-read.html">inotify_read</a></div> <div class="next" style="text-align: right; float: right;"><a href="book.mime-magic.html">Mimetype</a></div> <div class="up"><a href="ref.inotify.html">Inotify Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>