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

前端 未结 5 2030
终归单人心
终归单人心 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:49

    It may be a problem with the path as it depends where you are running the script from. It's safer to use absolute paths. To get the path to the directory in which the current script is executing, you can use dirname(__FILE__).

提交回复
热议问题