Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: mp3 stream


  • Subject: Re: lug-bg: mp3 stream
  • From: bivol@xxxxxxxxx (BIVOL ONLINE)
  • Date: Fri, 4 Oct 2002 12:14:41 +0300



##########################php:#########################################
<?   

if (strlen(chop($url)) != 0) {    
  $url = chop($url);        
  header("Content-Type: audio/x-mpegurl");  
  echo "$url";                      
  } else {  
  header("Content-Type: text/html");  
  echo "You didn't supply a URL. (Generate form with list here.)";  
  }  

?>
####################Perl:###################################
#!/usr/bin/perl
#usage myscript.pl?mp3=http://bivol.net/learnPerl.mp3
 
 use strict;
 use CGI;
 
 my $q = new CGI;
 my $url = $q->param('mp3');
 
 if (defined($url)) {
     print $q->header('audio/x-mpegurl');
     print "$url\n";
 } else {
     print $q->header, $q->start_html('Error'), $q->h1('Error'),
           $q->p('You did not specify the mp3
 parameter.'),
           $q->end_html;
 }
########################################################

On 04.10.2002 at 11:50:07, ivan adams <the_rat@xxxxxx> wrote:

> znachi problema mi e sledniqt, ima tuka edin httpd server s mp3-ki, celta e
da se napravqt taka che da ne se svalqt a da se stream-vat v realno vreme. Tui
kato servera e ogranichen samo za regiona, nqma da se izpolzva internet trafic
i napravo shte minava. Poglednah v google-a tam mi kazaha da go sloga v
mime.types application/octet-stream    mp3, ili x-scpls   mp3, i drugi podobni
koito probvah i pak sushtoto, prosto na linka vmesto da trugva mp3 player
izkarva download ... molq nqkoi ako moje da mi kaje kade burkam - mnogo shte
sum mu blagodare
> 
> -----------------------------------------------------------------
> http://www.Netinfo.bg - Íîâèÿò äèçàéí!
> ============================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
> http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
> To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
> ============================================================================
> 

---------------------
http://mail.e-card.bg
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.