Sunday, November 15, 2009

How to check if an image exist or not

Hi all,

I want to check whether one image file exists or not in cake, I coded
like this (in my helper file):

if( !file_exists( WEBROOT_DIR.'/img/'.$file ) )
{...}

However, it cannot check it correctly. Can anyone tell me how can
manage it? Thanks.

--

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cake-php?hl=.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate