0

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

Charles
  • 50,943
  • 13
  • 104
  • 142
EzzDev
  • 9,900
  • 12
  • 35
  • 35

2 Answers2

6

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

Shiv
  • 8,362
  • 5
  • 29
  • 32
0

The exact same question has been asked here before.

The short answer was: no.

Community
  • 1
  • 1
altermativ
  • 690
  • 1
  • 6
  • 20