I am trying to use is_readable like this:
If (is_readable($midiFile)) {
echo '
<font size="3">
<a href="'.$midiFile.'">play music</a><br />
</font>
';
}
Something is wrong with this code, though. It never is true so my echo never works. If I remove the conditional statement, like this
// If (is_readable($midiFile)) {
echo '
<font size="3">
<a href="'.$midiFile.'">play music</a><br />
</font>
';
// }
my link appears on the web site. If I click the link, I play the file, so I know that it's readable. The link works. Yet, when I put on the conditional statement as it appears above, it doesn't pring my link. Can anyone see why this is happening?
Thanks in advance,