Announcement

Collapse
No announcement yet.

php listener script for iphone

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • php listener script for iphone

    hi,

    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

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

    just reboot your iphone and open safari to this address

    http://127.0.0.1/

    Current issues:

    can only play shoutcast mp3 streams
    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

  • #2
    Looks great
    Wavestreaming | Shoutcast Hosting | Auto DJ |
    How To Start An Internet Radio Station

    Comment


    • #3
      could you explain a little more

      how do you move the folders around on your iphone. I downloaded both apps but then got stuck on moving files so i did research and found brickr & iphonebrowser that might enable this. Is this what you used, could you explain a little more the process? THANX

      Comment


      • #4
        here is a updated version which loads faster fractionally or so i think and fixed a issue with windows shoucast servers.







        Attached Files

        Comment


        • #5
          Re: could you explain a little more

          Originally posted by kxuna
          how do you move the folders around on your iphone. I downloaded both apps but then got stuck on moving files so i did research and found brickr & iphonebrowser that might enable this. Is this what you used, could you explain a little more the process? THANX
          i use winscp for log in to iphone via openssh.

          Install open ssh from the installer app on iphone first and then reboot wait 30 secs and use winscp(google it) or http://winscp.net/eng/index.php

          get it from there. Your default username is root and password alpine if you are using latest firmware. All my paths are from root folder so you might need to move few directories out since winscp logs you into default user directory and not root directory.

          Comment


          • #6
            Thanx a million.

            Comment


            • #7
              welcome. Let me know if it works or you think its complete crap and i should ditch it and find something else useful.

              Comment


              • #8
                Great work! This is a great replacement for iRadio, I can go to a bookmark to listen to my station now on my iPhone.

                Thanks!

                Comment


                • #9
                  Hello love the idea of your php listenerv0.0.2. Got everything installed just can not figure out how to get it load. I get to this point: just reboot your iphone and open safari to this address URL submitted by user. and the URL does not show up. What do you type in the Safari browser to start the PHP? Thanks

                  Comment


                  • #10
                    url in safari is ht*p://127.0.0.1/
                    ht*p://127.0.0.1/php.php to see if your php installation was successfull.

                    Comment


                    • #11
                      First, i'd like to comment that i find your find/hack VERY useful, cause iRadio takes lots of cpu time out of the iPhone, and i looked for something lighter for a long time.

                      Is there any way of editing the top 500 stations to our favourite shoutcast stations? if Yes, please explain how.

                      Thanks alot!

                      -eli1981

                      Comment


                      • #12
                        i think load.php is the one to fetch the radio stations. And i just saw that in my hurry i forgot to change the ports for fsockopen for shoutcast servers other than port 80. If you have a certain request let me know more about it and maybe i can help such as custom radio stations or maybe saved playlist. Since iphone sdk is released and more apps will be coming in june i sort of think php radio will be extinct and thats why i have not updated it with all the fixes.

                        Comment


                        • #13
                          I've managed last night to track the url i needed to write so i manually wrote myself the url of each shoutcast server of my fav station and bookmarked it after, maybe a lame solution but it worked

                          If you won't mind making a list of customed list (or showing me how i can make one) to use with this iui UI i'd really appreciate it.

                          cheers

                          Eli

                          Comment


                          • #14
                            Ok here is how you can do it, and it's simple. There's an app called MNPlight. That will allow you to enter in custom shoutcast url's and it works. Just install it, launch it, go to Radio, and add the custom url. Simple as that

                            Comment


                            • #15
                              Error Messages

                              Hello,

                              I've installed all the above but when I click on top 500 stations the response is 500 - Internal Server Error or 403 Forbidden (403 Forbidden disappeared when I overwrote the lighttpd.conf file in iphone). What am I doing wrong? Below I've attached error log file message:

                              2008-05-09 19:01:53: (mod_cgi.c.734) stat for cgi-handler /opt/iphone/bin/php-cgi failed: No such file or directory

                              Many thanks for help

                              David

                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎