If you want to check if a file exists, then you can simply call file_exists()
.
if (file_exists("./movies/posters/fixed/ID.html") && is_file("./movies/posters/fixed/ID.html")) {
$match_fixed = true;
}
I take the PHP file is copied in the server root directory.
If you want to verify the URL used to access the files you reported (assuming they are really PHP files, and you put the code inside them to verify the URL used to access them, then the following code works:
if (strpos($_SERVER['REQUEST_URI'],"/posters/fixed/") === 0) {
$match_fixed = true;
}
If you meant something else, then extend the question so it's clearer what you mean.