开发者

will file_exist() php function cause high server load?

开发者 https://www.devze.com 2022-12-14 11:28 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消