Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: php server status page?

  1. #11
    Join Date
    Sep 2006
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    although shoutcast is active but not showing correctly...

    ports 8000 and 8001..

    any ideas?

  2. #12
    Join Date
    Sep 2006
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nope, actually mysql and shoutcast isnt reporting correctly.. any idea?

  3. #13
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You should note that the ports shown on that list are only defaults; they may not be the same on your server.

    Also, shoutcast is (as far as I know; I'm no expert in this area) a datagram protocol. That is to say, it's connectionless. This method won't work with it. I'm not entirely sure how one would check a datagram service. Perhaps send a packet and see if it responds?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #14
    Join Date
    Sep 2006
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh ok, stupid question, how would i know what port the mysql server is using?

    Cheers
    drew

  5. #15
    Join Date
    Aug 2006
    Posts
    239
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    $services = array(
    'SMTP' => 25,
    'HTTP' => 80,
    'POP' => 110
    );
    Hummps, I guess I'm always step ahead of the question, of course I stand corrected, but I was thinking more about checking if daemons are running of course, not port scan.

  6. #16
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    oh ok, stupid question, how would i know what port the mysql server is using?
    If you don't specify it when you connect, it's the default.
    I was thinking more about checking if daemons are running of course, not port scan.
    Checking if the port is open is probably one of the easiest ways of checking if the daemon is running. Failing that (and if the script was running on the same machine, which we know is not the case, thus rendering this approach impossible), it may be necessary to look for the daemon's lock file. However, Perl is not required, and indeed I can think of very few cases where Perl would be required over PHP (although the job may at times be made easier by a module).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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