Re: Re: How to tell if the filepath exist or not before attempting to create a directory??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Scott Fletcher wrote:
> Never mind that..  I found a different way to use it.  It would be so cool
> if there is such a feature as directory_exists() to check for partical
> filepath...

http://php.net/file_exists

You'll need to use @ in front, because it generates an error message when
it doesn't find the file you're not sure exists. :-(

I've always thought that was a pretty stupid error message myself...

Be kinda like isset() issuing a NOTICE for a variable that's not set. 
Well, duh.  That's why I asked. :-)

Oh, and I'm pretty sure file_exists works just fine for directories. 
Maybe even on Windoze. :-^

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux