Is anyone able to explain why, if the file_exists() function expects/requires an absolute (as opposed to relative) path to the file, the second of the three lines of code in the example below returns TRUE? That is a relative path, but the function still returns TRUE.
Basically, I'm trying to figure out why if the second example returns TRUE, the first example does not also return TRUE, since both use relative paths.
//This example makes use of Apache 2 on the Windows platform.
//The "movie.flv" file is located at D:\My Documents\Apache\siteroot\player\flv\movie.flv
//For reference, this example script is located in the Apache's document root: D:\My Documents\Apache\script.php
//Returns FALSE.
var_dump(file_exists('/siteroot/player/flv/movie.flv'));
//Returns TRUE.
var_dump(file_exists('./siteroot/player/flv/movie.flv'));
//Returns TRUE.
var_dump(file_exists('D:\My Documents\Apache\siteroot\player\flv\movie.flv'));
Thanks for any insight...