file_exist() php函数会导致服务器负载过高吗?

发布于 2024-08-15 20:20:47 字数 108 浏览 4 评论 0原文

我正在尝试检查用户是否上传了他或她的头像图像,并且我使用 file_exist() php 函数来检查用户头像图像是否存在,

这会导致大流量网站的服务器负载问题吗?

谢谢

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

够钟 2024-08-22 20:20:47

不,不会,这里是 file_exists 的文档。它还缓存结果,从而进一步提高性能。

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

花期渐远 2024-08-22 20:20:47

完全相同的问题已经被之前问过

简短的回答是:

The exact same question has been asked here before.

The short answer was: no.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文