Web lists-archives.com

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




> Op 24 apr. 2016, om 22:13 heeft Jeffry Killen <jekillen@xxxxxxxxxxx> 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: smime.p7s
Description: S/MIME cryptographic signature