Hello,
is there any function for file exist ?
i'm using file_copy function but if file already exist no need to copy again
how do i check file ?

Comments

alisamar’s picture

ok i found it. there is no any druapl function for that but

file_exists — Checks whether a file or directory exists

more information:
http://php.net/manual/en/function.file-exists.php