Ok, so I found the reason for your error message that appears with the script. The original is below and the correction is below that in red.
Code:
<?php
$file = $_REQUEST["file"];
//info about music files is stored
$farray (
'one' => 'a.wmv',
'two' => 'b.wmv',
'three' => 'c.wmv'
);
// file not (!=) null ("")
if ($file != "") {
$open = $farray[$file];
}
else {
$open = ' ';
}
Header("Content-type: video/x-ms-wmv");
echo $open;
?>
Correction:
Code:
<?php
$file = $_REQUEST["file"];
//info about music files is stored
$farray = array(
'one' => 'a.wmv',
'two' => 'b.wmv',
'three' => 'c.wmv'
);
// file not (!=) null ("")
if ($file != "") {
$open = $farray[$file];
}
else {
$open = ' ';
}
Header("Content-type: video/x-ms-wmv");
echo $open;
?>
I completely overlooked that the code had an array, but the array was never started. Hope this helps.
Bookmarks