I have files with the following names:
doc#001.zip
doc#002.zip
doc#003.zip etc.
Users can click to download these files. I get the name (doc#001) from a database and I add the '.zip' manually:
if (file_exists('./'.$myrow["fullname"].'.zip')) { ... }
When executing this example php doesn't recognize the file. I found out that the '#' is the reason. Without the '#', file_exists returns true. I guess that the '#' is one of the forbidden characters.
The problem is that the filenames are all fixed. How can I let php recognize the files and make file_exists = TRUE, when there is a '#' in the filename?