Re: is_file() and is_dir() not finding a zipped directory

From: Date: Sun, 24 Apr 2016 21:51:07 +0000
Subject: Re: is_file() and is_dir() not finding a zipped directory
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-325551@lists.php.net to get a copy of this message
> Op 24 apr. 2016, om 22:13 heeft Jeffry Killen <jekillen@prodigy.net> het volgende > geschreven: > > > when code checks for the existence of file, the function fails to > find it. So I added test for directory: > > if(!is_file($_file) || !is_dir($_file)) > { > // returns error string > } > > > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Hi Jeffry, What I see you doing is testing if it isn’t a file OR it isn’t a directory. Somehow that always is true. (Glad you fixed it though) Jasper

Attachment: [application/pkcs7-signature] smime.p7s
« previous php.general (#325551) next »