Announcement

Collapse
No announcement yet.

php code for SHOUTcast 2 DNAS Status

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

  • php code for SHOUTcast 2 DNAS Status

    Hi

    I have modify music ticker php script modify by me, please check and suggestion any change. i need some help from advance user for; how to add multimarker (place) from multi IP on google map? i will post code soon.
    please check it


    Regards

  • #2
    Bendiciones no puedo obtener el codigo de mi radio me podrian ayudar porque cuando entro a link no me aparece

    Comment


    • #3
      Looks pretty good so far Sokhi.
      Bongo Radio: Tanzania Hottest Online Radio

      Comment


      • #4
        Re-php code for SHOUTcast 2 DNAS Status

        Here is code by Music Ticker.
        Please edit config.php for manditory config items

        only two line changed.

        Line:-69
        PHP Code:
        fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml HTTP/1.1\nUser-Agent:Mozilla\n\n"); 
        changed to
        PHP Code:
        fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml&sid=1 HTTP/1.1\nUser-Agent:Mozilla\n\n"); 
        Line:-81
        PHP Code:
        $sp_data=ereg_replace("^.*<!DOCTYPE","<!DOCTYPE",$sp_data); 
        changed to
        PHP Code:
        $sp_data=substr($sp_data, (strpos($sp_data"\r\n\r\n")+4)); //changed 

        If you find any issue please PM
        Regards
        Attached Files

        Comment


        • #5
          sokhi

          i ' ve tried the code but not working in hosting platform,with my local server i get this

          Comment


          • #6
            kosxo: based on your other posts, most likely it's from this script being used against 2.0 final when you're using (most likely) the first 2.0 beta which doesn't have a lot of the pages / data available as 2.0 final has.

            sokhi: nice to see people starting to adopt and create things for the v2 DNAS (hopefully wasn't too much work and was worth it ).

            -daz
            WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog

            Comment


            • #7
              i create a whole control panel, when sc_trans works.. 1 form to config a single .conf file to start sc_trans on a dedicated box

              still, just updating dnas 1.9, that might not being working admin panel, in the latest version of http://sourceforge.net/projects/nullnuke/

              most of it is done with generating pls files, just the configuration files to sort out for dnas 2, running sc_trans

              Comment


              • #8
                Originally Posted by sokhi View Post
                Here is code by Music Ticker.
                Please edit config.php for manditory config items

                only two line changed.

                Line:-69
                PHP Code:
                fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml HTTP/1.1\nUser-Agent:Mozilla\n\n"); 
                changed to
                PHP Code:
                fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml&sid=1 HTTP/1.1\nUser-Agent:Mozilla\n\n"); 
                Line:-81
                PHP Code:
                $sp_data=ereg_replace("^.*<!DOCTYPE","<!DOCTYPE",$sp_data); 
                changed to
                PHP Code:
                $sp_data=substr($sp_data, (strpos($sp_data"\r\n\r\n")+4)); //changed 

                If you find any issue please PM
                Regards
                Hello sokhi great job, it works fine for me, just a thing how can u add the next song feature to this script, i don't know php!!!!
                Thanks

                Comment


                • #9
                  you just need to access /nextsong?sid=# (public page) to get the next song.

                  -daz
                  WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog

                  Comment


                  • #10
                    Rehp code for SHOUTcast 2 DNAS Status

                    carluska
                    php code with Stream Metadata

                    http://www.megafileupload.com/en/fil...pdate-zip.html

                    for free update or download Country identification based on IP address database

                    http://www.phptutorial.info

                    Regards

                    Comment


                    • #11
                      Originally Posted by sokhi View Post
                      carluska
                      php code with Stream Metadata

                      http://www.megafileupload.com/en/fil...pdate-zip.html

                      for free update or download Country identification based on IP address database

                      http://www.phptutorial.info

                      Regards
                      uploaded this on my server, but date is not updated in realtime. how can i make the song title and artist update in real time? pls reply. thanks!

                      Comment


                      • #12
                        Originally Posted by ridz View Post
                        uploaded this on my server, but date is not updated in realtime. how can i make the song title and artist update in real time? pls reply. thanks!
                        search google for edit timezone in php.ini

                        or

                        edit line 46 on index.php

                        code:
                        putenv("TZ=Asia/Calcutta");
                        According to your country

                        regards

                        Comment


                        • #13
                          Hi sokhi,

                          i have updated to php5.4.4 and I get an error like this:

                          PHP Fatal error: Call-time pass-by-reference has been removed in /var/www/web9/html/v2/radio/scxml-obj.php on line 61
                          Is it possible to fix it?

                          Thanks!

                          *** Edit

                          removed all "&" from scxml-obj.php and it works fine

                          Comment


                          • #14
                            Re upload on shoutcast

                            Edit on 12-01-2014: Please note, scxml-1-4-2-update-zip remove by megafileupload server. re upload on shoutcast server download attachment if you need.



                            Originally Posted by sokhi View Post
                            carluska
                            php code with Stream Metadata

                            http://www.megafileupload.com/en/fil...pdate-zip.html

                            for free update or download Country identification based on IP address database

                            http://www.phptutorial.info
                            Regards
                            Attached Files

                            Comment


                            • #15
                              Kription - updated version

                              Almost a decade since the last time I touched the original source (and it shows), I'm here to put up what will *extremely likely* to be the last version of SCXML - v1.666 (tip o'da hat).

                              SCXML ver. 1.666

                              Here is the change log:

                              2014/01/26 - 23:46 ## WOW - almost an entire decade.
                              Package version - 1.666
                              - Removing a lot of old junk
                              - Removed old Simple script which read the server's "7" file
                              - Include StreamID (sid) for admin request and listen to link
                              - Change string parsing for returned data
                              ## Thanks to Sokhi (http://forums.winamp.com/member.php?u=421047)
                              ## http://forums.winamp.com/showpost.ph...29&postcount=4
                              * Version Changes:
                              - object code: 0.666
                              - sample code: 0.666
                              - config code: 0.666
                              - simple code: 0.666
                              - readme code: 0.666


                              Cheers all! It has been a blast.

                              Comment

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