Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

phpShout-0.1

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Mon Jan 23, 2006 11:25 pm    Post subject: phpShout-0.1 Reply with quote

I am pleased to announce the first release of my libshout PHP Extension, phpShout-0.1! It compiles and runs very smoothly on my server (Fedora 4 - php-5.0.4 - apache-2.0.54 - libshout-2.1) but I need some help trying this compile and execution on several other hardware and software configurations, especially a Windows PHP installation. All it requires is php and libshout to compile and install.

Compile and Installation instructions, Usage information, and some example PHP code are all included in this release. With this Extension, you can write a PHP script to act as an Icecast source client. Almost every libshout function and constant has been made available to the PHP engine. Here is an example PHP script using phpShout:

$link = shout_create('localhost:8000/myMount');
if ($link != SHOUTERR_SUCCESS) die("Could not create object!\n");
shout_set_name($link, "My Radio Station");
if (shout_open($link) != SHOUTERR_SUCCESS) die("Could not connect to: ".shout_get_host($link).':'.shout_get_port($link).shout_get_mount($link));
print "Success!\n";
shout_close($link);

Please download it and give it a try!
http://sourceforge.net/projects/phpshout
Back to top
Anonymous
Guest





PostPosted: Sun Jan 29, 2006 4:43 pm    Post subject: Yeah! Finally PHP bindings! Reply with quote

Hi there!

First of all, since you didn't get any response until now: Your extension is just what I was searching for several weeks ago. Keep up the good work since there's at least one guy out there who will definitely make use of it! I need to connect PHP with an Icecast-Server but until now no libshout bindings for PHP were available. Since it was several weeks ago that I was looking for this I had to go with an external solution so I wrote a command line client for the Ruby bindings (with tons of features like STDIN streaming, looping and even parking users on other mountpoints before disconnecting in around 200 lines, Ruby's always good for short solutions). Since I don't have the time to switch over to phpShout right now I can't test it yet, but in the near future I would greatly appreciate to have this available as an extension.

Important: Compiling for Windows is always giving me pain in the ***, I just couldn't manage to compile ruby-shout on Windows despite investing hours for compiling the external dependencies. On my Debian system such things are always easy but for Windows I would definitely need a precompiled DLL oder someone to show me how to install a sufficient environment for compilation. Also, a .deb package wouldn't hurt Wink

I'd also like to get some explanations about how to write a PHP extension since documentation is pretty sparse on this topic. I think there must be a straightforward way to write and compile library bindings but nobody documented this in a usable way.

Information about my project: I am doing this as part of my university diploma. It's a system that uses distributed content servers and a control protocol telling them to send files in transcoded form to an Icecast server.

Tip: phpShout seems to be a bad name since googling for this brings up some totally different stuff that has nothing to do with Icecast. Perhaps phpLibshout would be better to distinguish them.
Back to top
Anonymous
Guest





PostPosted: Thu Nov 30, 2006 1:03 pm    Post subject: Reply with quote

Hi,

Is there a debian package of phpshout? a dll would be great too.
Btw, Nice work!
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Thu Nov 30, 2006 1:53 pm    Post subject: Reply with quote

If this can help, I maintain a Fedora Core 6 repository with PHP 5.2.x builds and most PECL extensions, including Php-shout 0.9.1 (current release) with libshout-2.2.2 as well as oggvorbis extension.

Current available build is viewable at http://www.lab-project.net/checkme.php

Repository is avalable at ftp://ftp.lab-project.net in lab section
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Anonymous
Guest





PostPosted: Thu Nov 30, 2006 2:56 pm    Post subject: Reply with quote

Sorry, I haven't made any debian or windows packages for phpShout. If somebody does, please let me know!

jcr, I maintain php-shout RPMs in Fedora Extras for FC[56]. Is there a reason you package this in a separate repository? For php-5.2 support? You should consider submitting many of your PECL packages for inclusion into Fedora Extras, to reach a wider audience (Fedora Extras and Fedora Core are merging before FC7, to be a completely community-maintained distro).
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Thu Nov 30, 2006 3:17 pm    Post subject: Reply with quote

Sorry, I didn't know somebody maintained php-shout in main repos. As I also very early build PHP releases, I had setup this repo for my own use at first. I'll gladly submit in mainstream repos Smile
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber