|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-13 05:54 UTC] stas@php.net
[2000-09-03 07:45 UTC] waldschrott@php.net
[2000-09-03 07:47 UTC] waldschrott@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 11 15:00:01 2026 UTC |
I got several directories named x1,x2,x3 and so on. I want to extract every directory except x2, but it dosn't work in PHP4. I tried in PHP3 and it works <? $d=dir("."); while ($filename=$d->read()) { if (is_dir($filename) && $filename!='x2') { echo "$filename\n"; } } ?> Thanks in advance, Lasse