if(file_exists(IMAGES. 'upload' . DS . 'filename'))
hope this helps
On Sep 4, 8:31 pm, Ketan Patel <[EMAIL PROTECTED]> wrote:
> look in cake/config/paths.php, it has most of the general path
> constants that one would need. I think WEBROOT_DIR is what you need,
> however, look in that file for more info.
>
> Ketan
>
> Anna P wrote:
> > OK so how to use it? When I try
> > if(is_file("../img/upload/photo_file1_".$item['Item']
> > ['id'].".jpg")): (the path, which <img src> just gives me the right
> > image)
> > it doesn't work as well.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---