It is currently Sun Mar 24, 2019 4:41 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Trying to parse other filetypes as php
PostPosted: Wed Sep 26, 2007 2:14 am 
Newbie
Newbie

Joined: Wed Sep 26, 2007 2:08 am
Posts: 2
Sorry if I'm posting this to the wrong place - I'm trying to parse a .m3u file as php. I know that's kinda odd, but I've been able to do something like this on own home server. Basically, I want users to be able to download a dynamically-generated m3u file from my site. My understanding is admittedly vague here, but I thought I could make a .htaccess file with:

Code:
AddType application/x-httpd-php m3u


and put <?php tags in a .m3u file. That didn't work, so I'm wondering if I'm totally on the wrong track, or if I can achieve that affect this way. Any help would be appreciated - thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 5:32 am 
Getting Started
Getting Started

Joined: Wed Sep 19, 2007 8:15 am
Posts: 51
I'm sorry, but i'm not familiar with this issue, and i can't help your further. Probably you can do this on your computer, because you are using specially designed for this software.

_________________
Best Regards
James


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 7:07 am 
Newbie
Newbie

Joined: Wed Sep 26, 2007 2:08 am
Posts: 2
Well, I figured out another way to do what I was trying. You can use the php header function to create files on the fly for users to open/save like this:

Code:
<?php
header('Content-type: audio/x-mpegurl');
header('Content-Disposition: attachment; filename="test.m3u"');
echo "http://radio.hbr1.com:19800/trance.ogg";
?>


That turned out to be easier and does what I was trying to do, so thanks anyway.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 7:31 am 
Getting Started
Getting Started

Joined: Wed Sep 19, 2007 8:15 am
Posts: 51
You are always welcome. By the way this is an interesting php, and i'll save this posts for the future.

_________________
Best Regards
James


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011