lets say i got: if (file_exists("users/$user.txt")) { Now if the $user would be: $user = 'lool") || !file_exists("AA'; and the full code would be if (file_exists("users/lool") || !file_exists("AA.txt")) { And it always passes it. -------------- code would be if (file_exists("users/lool\") || !file_exists(\"AA.txt")) {