I have checked that file_exists
do not support special character.
My system need to check users' submitting files. And a file name has included dash character which make Internal Error 500
. And users insist on not changing file name to work with the system.
Here is the PHP code:
$file_location = $db->user_file_path; // path: /path/to/user/file/file-name.pdf
if(!file_exists($file_location))
{
// send email to user
}
How can I handle this case?