Hi there,
Consider the situation, I need your opinions:
I have a file named 'photo.jpg', located in folder 'src'. Web anonymous account has read access on folder src.
Code:_______________________
$s_dir = "src";
$s_dir = @opendir($s_folder) or die("Kaynak hatalĂ˝");
while ($tmp_file = readdir($s_dir)) {
if (is_file($tmp_file)) {
echo $tmp_file."<BR>\n";
echo filetype($tmp_file)."<BR>\n";
echo is_file($tmp_file)."<BR>\n";
echo is_dir($tmp_file)."<BR>\n";
}
}
Result:______________________
photo.jpg
dir
false
false