|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-03-25 07:32 UTC] denissov at hotmail dot com
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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 11 23:00:01 2025 UTC |
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; }