Hello I have a simple script below where the value if MATCHED will echo message, but I want to create a script from this that instead of message it will sound or play audio file when the value is matched here below is the script sorry if I put the script sample inappropriate TY
<?php
// weather disturbance checker script
$imagesDir = './ajax-images/'; // directory for ajax-images with trailing slash
$MayBagyo = file_get_contents('./cache/typhoonsector3.txt');
$products = str_word_count($MayBagyo, 1);
$bagyostatus = 'wp9'; // when matched
$cyclonefound = false;
foreach ($products as $product)
{
if (strpos($bagyostatus,$product) !== false) {
$cyclonefound = true;
break;
}
}
if ($cyclonefound) {
//echo 'A Low Pressure Area is Detected';
echo "sound will play"/>";
}
else {
echo '"message will post';
}
// end of weather disturbance checker script
?>