note 55434 added to function.fopen

From: Date: Wed, 03 Aug 2005 14:28:04 +0000
Subject: note 55434 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-93012@lists.php.net to get a copy of this message
Note that whether you may open directories is operating system dependent. The following lines: <?php // Windows ($fh === false) $fh = fopen('c:\\Temp', 'r'); // UNIX (is_resource($fh) === true) $fh = fopen('/tmp', 'r'); ?> demonstrate that on Windows (2000, probably XP) you may not open a directory (the error is "Permission Denied"), regardless of the security permissions on that directory. On UNIX, you may happily read the directory format for the native filesystem. ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55434 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55434&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55434&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55434&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55434&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55434&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55434&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55434&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93012) next »