Php – will file_exist() php function cause high server load

file-existsphp

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 websites ?

thanks

Best Solution

No it will not, here is the documentation for file_exists. It also caches the results, so that further improves performance.