note 48319 added to function.is-file

From: Date: Sun, 19 Dec 2004 06:17:42 +0000
Subject: note 48319 added to function.is-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-82010@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.is-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48319 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48319&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48319&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48319&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48319&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48319&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48319&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48319&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#82010) next »