closedir

closedir

(PHP 3, PHP 4, PHP 5)

closedir -- Close directory handle

Description

void closedir ( resource dir_handle )

Closes the directory stream indicated by dir_handle. The stream must have previously been opened by opendir().

Parameters

dir_handle

The directory handle resource previously opened with opendir().

Examples

Example 1. closedir() example

<?php
$dir
= "/etc/php5/";

// Open a known directory, read directory into variable and then close
if (is_dir($dir)) {
    if (
$dh = opendir($dir)) {
        
$directory = readdir($dh);
        
closedir($dh);
    }
}
?>



Links
StartLogic $5.95/mo
  • 200GB Diskspace
  • 2000GB Bandwidth
  • Host 10 Domains
  • CGI PHP MySQL
  • eCommerce Enabled
  • 30 Day Money Back Guarantee

Bluefish $6.95/mo
  • 6GB Diskspace
  • 100GB Bandwidth
  • PHP Perl MySQL SSI CGI SSL
  • Free Domain
  • No Setup Fees
  • No Hidden Fees

Dot5 Hosting $4.95/mo
  • 200GB Diskspace
  • 2000GB Bandwidth
  • Host 5 Domains
  • CGI Ruby Perl PHP MySQL
  • Free Domain Forever

Hosting Companies


Partners


Quick Search
Platform

Price

Diskspace

Bandwidth


 Advance Search
 Show All Companies


Reference & Manual

If you are looking for dedicated servers, look no further. HostPulse.com is a site devoted to help web users find cheap web hosting and dedicated servers.


Free Sitemap Generator Host Login/Register | Contact Us | Terms | Add Links
Thumbnails by Thumbshots.org © 2002-2008 CheapHostDir.com