i have something like it:
<?php
if (!isset($f)) {
$file = "http://www.domain.com/files/file.zip";
} else {
$file = $f;
}
if ($fp =@fopen($file, "r")) {
$msg = "<b>OK</b>";
} else {
$msg = "<b>ERROR</b>";
}
print $msg;
?>
It works fine, but if i call the script like this:
file.php?f=http://www.domain.com/files
it also returns true and print OK.
My question is how can i check for files ONLY?
Thanks in advance
Dedix