FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » test for file existance
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: test for file existance [message #182852 is a reply to message #182851] Sat, 21 September 2013 14:35 Go to previous messageGo to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
On Sat, 21 Sep 2013 10:16:02 -0400, richard wrote:

> What would be a good way to test to see if the file actually esists?
>
> In my database I may have a file name listed, but don't have the actual
> file.
> So if you don't have the file, then why reference it?
> For simplicity. When I enter one part of the pair, the other part simply
> gets a "b" added to the name.
> e.g 100 and 100b.
>
> Because there is no file to work with, I want to be able to post a notice
> saying "not available" or what ever.

well duhh.
If I use file_exists(), it does what I want just fine.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ann: PDF report writer
Next Topic: Setting & displaying Variables
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 05 02:31:59 GMT 2024

Total time taken to generate the page: 0.03795 seconds