will file_exist() php function cause high server load?
i am trying to check if user uploaded his or her avatar image and i use file_exist() php function to check if the user avatar image exist or not
will this cause any server load problem with massive traffic webs开发者_JAVA技巧ites ?
thanks
No it will not, here is the documentation for file_exists. It also caches the results, so that further improves performance.
The exact same question has been asked here before.
The short answer was: no.
精彩评论