PHP file_exists directory
问题 I am trying to use file exists in a subdirectory and running into some problems with the directory structure or perhaps something else. This code was working earlier when called from the main directory The file that includes the command is in a subdirectory that is one directory below the main directory of the domain. When I call the following on a file that I know exists nothing is returned, neither FALSE nor TRUE $imgpath1 = 'pics/'.$userid.'_pic.jpg'; $exists = file_exists($imgpath1); echo