ID: 16257
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Feedback
+Status: Open
Bug Type: Directory function related
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:
I have manually set windows swapfile to another partition than C:. In
the root I have a file called Win386.swp and when I try to list the
root dir... well, here's the code:
$dir = "/";
print_r(listDir($dir));
function listDir ($dir=".") {
$thisDir = opendir($dir);
while($d = readdir($thisDir)) {
if (is_dir("$dir/$d")) {
$listDirs[] = $d;
}
}
return $listDirs;
}
Previous Comments:
------------------------------------------------------------------------
[2002-03-25 08:47:45] [EMAIL PROTECTED]
Can you provide a sample script?
------------------------------------------------------------------------
[2002-03-25 07:32:52] [EMAIL PROTECTED]
That happens when you want to check if the windows' swapfile is a
ehm... a dir.
I'm using php 4.0.6 with Apache.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16257&edit=1