file_exists() expects parameter 1 to be a valid path, string given

前端 未结 5 2031
终归单人心
终归单人心 2020-12-07 01:12

I\'m designing a web application that can be customized based on which retail location the end user is coming from. For example, if a user is coming from a store called Farm

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 01:44

    Run a var_dump(strpos($buttons_first,"\0")), this warning could come up when a path has a null byte, for security reasons. If that doesn't work, check the length of the string and make sure it is what you'd expect, just in case there are other invisible bytes.

提交回复
热议问题