| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Mon Jan 23, 2006 11:25 pm Post subject: phpShout-0.1 |
|
|
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
|
Posted: Sun Jan 29, 2006 4:43 pm Post subject: Yeah! Finally PHP bindings! |
|
|
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
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
|
Posted: Thu Nov 30, 2006 1:03 pm Post subject: |
|
|
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

Joined: 14 Apr 2006 Posts: 544 Location: France, Auvergne
|
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Nov 30, 2006 2:56 pm Post subject: |
|
|
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

Joined: 14 Apr 2006 Posts: 544 Location: France, Auvergne
|
Posted: Thu Nov 30, 2006 3:17 pm Post subject: |
|
|
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  _________________ Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting |
|
| Back to top |
|
 |
|
|
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
|