Results 1 to 5 of 5

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: php listener

  1. #1
    Default php listener
    Php listener is script for iphone in php which plays mp3 stream from the shoutcast directory. Just wrote it since i was having problem with iradio on new firmware 1.1.3. The script uses iui as front end. The script is buggy and is not in any way complete. Just wanted to share it and see if its any good to improve it or just end it here..

    Installation:

    install php 5.2 from the installer app
    install the lighttpd from installer app
    copy the lighthttpd.conf file to /usr/local/etc [included in zip file/ basic purpose to enable php]

    move the contents of zip to your site folder or document root for your server which is /private/var/root/Sites for lighttpd

    just reboot your iphone and open safari to this address

    http://127.0.0.1/

    Current issues:
    low cpu usage, thats the only good point i found about it
    can only play shoutcast mp3 streams
    quicktime might take 10-15 secs to load so be patient
    php has issues resolving dns on edge
    good wifi connectivity
    since i was in hurry to post i just wrote it for top 500 stream in the shoutcast directory
    other miscellaneous issues from a alpha, prototype or what ever you like calling it..










    Attached Files Attached Files

  2. #2
    here is a updated version which loads faster fractionally or so i think and fixed a issue with windows shoutcast servers.
    Attached Files Attached Files

  3. #3
    seems like a really nice application man but i having som issues when i'm trying to change from the top500 list, playback will not start, and i also tried: http://127.0.0.1/shoutcast.php?addre...00&bitRate=128
    doesn't work no mather what i do, you have any solutions?

    just found an solution guys

    http :// 127.0.0.1/shoutcast.php?address=http://shoutcast.server.com:8000/;stream.nsv&bitRate=yourbitrate

    EDIT: and btw, you need to set the "80" port in the fsockopen to $address[port]
    Last edited by active-x; 2008-03-20 at 02:48 PM. Reason: Automerged Doublepost

  4. #4
    smarttouch,

    thanks for the script. I tried using your script in apache webserver installed in my laptop and tried accessing the page from my iphone. when I select any station and click play, QUICKTIME loads but it doesnt play anything.

    It would be great if you help me in setting up this

    Thanks
    Harry

  5. #5
    Default php listener config help
    i need a little help setting this up..

    im using serverroom.com to host my stream.

    I just need to be able to link to 1 stream from my iphone.

    is there any tutorials about setting this up to work?

    thanks in advance!!

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •