note 7734 deleted from dir by ronabop

From: Date: Sat, 12 Aug 2000 23:01:59 +0000
Subject: note 7734 deleted from dir by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1761@lists.php.net to get a copy of this message
I got a BIG problem. I got several directories called x1,x2,x3 and so on. I want to pick out every directory except x4. My script is like this: &lt;? $d=dir("."); while ($filename=$d->read()) { if (is_dir($filename) && $filename!='x4') { echo "$filename<br>"; } } ?> This dosn't work. I suspect PHP4, but I am not sure. Anyone got an idea?

« previous php.notes (#1761) next »