Expand|Select|Wrap|Line Numbers
- <FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
- Order allow,deny
- </FilesMatch>
Expand|Select|Wrap|Line Numbers
- AddType text/plain txt
Here's the relevant code from my .php file:
[PHP]
$yy = date('Y', $created);
$mm = date('m', $created);
$dd = date('d', $created);
$yymmdd = $yy.$mm.$dd;
$flv = base_path() . 'files/sundays/' . $yy . '/' . $mm . '/' . $yymmdd . '.flv';
if (file_exists($flv)) {
// my code
} else {
echo '<p>file ' . $flv . ' doesn\'t exist.</p>'; }
var_dump(file_exists($test));
echo '<br />';
fread($test, 8);[/PHP]
The last three lines are for testing purposes. And they're failing. :-)
Any help would be greatly appreciated. Thank you!
David
P.S. I'm using Drupal, and this is a node template. I hope that's not the problem, but just FYI.