note 48319 deleted from function.is-file by tularis

From: Date: Sun, 19 Dec 2004 09:47:45 +0000
Subject: note 48319 deleted from function.is-file by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82032@lists.php.net to get a copy of this message
Note Submitter: designs at guardiansrealm dot net ---- Neither "!is_dir()" nor "is_file()" work on my clients bluegravity.com site. foreach ($content as $image) { if ( $image != "." && $image != ".." && !is_dir($image)) { $content[] already holds all the files in a directory of images and eventually their out-putted very prettily to the screen. On my test-server this line CORRECTLY filters out the CVS sub-directory, but on the main site it pulls CVS/ and displays it as a broken image! :-( Supposedly the host supports PHP4 & 5 Whats breaking? Alternative solutions? Thanks RavenSlay3r ---- Reason: spam

« previous php.notes (#82032) next »