I hope this is in the correct section, if it is not, please advise where the best place for it is or move it.


I have a windows 2012 server - IIS - Plesk

I am attempting to write dynamic m3u8 playlist files with php

I created a test.m3u8 file containing simply <?php echo 'Hello World';?>

I have set the mime type of .m3u8 to application/x-php in IIS and in Plesk but when I navigate the file via browser either remotely or locally i get only raw php - <?php echo 'Hello World';?>

i have also tried adding handler via .htaccess to no avail.

Other test i have performed are completely deleting the mime type for .m3u8 and as expected i got a 404.3 error on the server so i know the mime type is having an effect on the file.

I am inexperienced with this and could really use some help.

Thank you in advance