+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: PHP: Ping with Pear

  1. #11
    Jordan Guest

    Re: PHP: Ping with Pear

    I believe you are trying to scam me. I'm hovering over the -rep button!

  2. CODECALL Circuit advertisement

     
  3. #12
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: PHP: Ping with Pear

    LOL no need to be so hasty! What do you mean, I'm trying to scam me? It was just a joke, nothing personal...

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  4. #13
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    4,834
    Blog Entries
    10
    Rep Power
    51

    Re: PHP: Ping with Pear

    Do I need to go to a certain folder before I run the command. Because it is saying unknown command.
    jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
    Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!

  5. #14
    phpforfun's Avatar
    phpforfun is offline Speaks fluent binary
    Join Date
    Feb 2008
    Posts
    1,232
    Blog Entries
    17
    Rep Power
    24

    Re: PHP: Ping with Pear

    I googled pear net_ping, this was on the first 5 links, lol..
    http://vastbrowser.com/dns/ping.php

    Whatsup sir, it aint workin, lol
    Checkout my new forum! http://adminreference.com/

  6. #15
    Join Date
    Sep 2010
    Posts
    1
    Rep Power
    0

    Re: PHP: Ping with Pear

    Sorry to dig up an old thread, but this seems to be the only place with decent info on this Net_Ping package. I manage several wireless networks and need a simple monitor that will ping a device and report when it is unresponsive. This seems like it's exactly what I'm looking for, but I can't get it to work. I had trouble with the require path, but I figured out that I had to use:
    Code:
    require ("/home/codecall/php/Net/Ping.php");
    I was using a more advanced code that was supposed to allow you to extract specific subsets of data from the array you are supposed to get. But when that wasn't working, I simplified to the basic example given on the PEAR website, but I liked your <pre> tags so I've now copied your exact code (host to ping included, tho I've tried my own site as well as google) and still no luck. All I get is this and I don't know what it means:

    Code:
    PEAR_Error Object
    (
        [
    error_message_prefix] => 
        [
    mode] => 1
        
    [level] => 1024
        
    [code] => 1
        
    [message] => unknown host
        
    [userinfo] => 
        [
    backtrace] => Array
            (
                [
    0] => Array
                    (
                        [
    file] => /usr/lib/php/PEAR.php
                        
    [line] => 566
                        
    [function] => PEAR_Error
                        
    [class] => PEAR_Error
                        
    [type] => ->
                        [
    args] => Array
                            (
                                [
    0] => unknown host
                                
    [1] => 1
                                
    [2] => 1
                                
    [3] => 1024
                                
    [4] => 
                            )

                    )

                [
    1] => Array
                    (
                        [
    file] => /home1/airwavea/php/Net/Ping.php
                        
    [line] => 396
                        
    [function] => raiseError
                        
    [class] => PEAR
                        
    [type] => ->
                        [
    object] => Net_Ping Object
                            
    (
                                [
    _ping_path] => /bin/ping
                                
    [_result] => Array
                                    (
                                    )

                                [
    _OS_Guess] => 
                                [
    _sysname] => linux
                                
    [_args] => Array
                                    (
                                        [
    count] => 3
                                    
    )

                                [
    _noArgs] => 
                                [
    _argRelation] => Array
                                    (
                                        [
    sunos] => Array
                                            (
                                                [
    timeout] => 
                                                [
    ttl] => -t
                                                
    [count] =>  
                                                [
    quiet] => -q
                                                
    [size] =>  
                                                [
    iface] => -i
                                            
    )

                                        [
    freebsd] => Array
                                            (
                                                [
    timeout] => -t
                                                
    [ttl] => -m
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => 
                                                [
    iface] => 
                                            )

                                        [
    netbsd] => Array
                                            (
                                                [
    timeout] => -w
                                                
    [iface] => -I
                                                
    [ttl] => -T
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                            
    )

                                        [
    openbsd] => Array
                                            (
                                                [
    timeout] => -w
                                                
    [iface] => -I
                                                
    [ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                            
    )

                                        [
    darwin] => Array
                                            (
                                                [
    timeout] => -t
                                                
    [iface] => 
                                                [
    ttl] => 
                                                [
    count] => -c
                                                
    [quiet] => -q
                                                
    [size] => 
                                            )

                                        [
    linux] => Array
                                            (
                                                [
    timeout] => -W
                                                
    [iface] => 
                                                [
    ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                                
    [deadline] => -w
                                            
    )

                                        [
    linuxdebian] => Array
                                            (
                                                [
    timeout] => -W
                                                
    [iface] => 
                                                [
    ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                                
    [deadline] => -w
                                            
    )

                                        [
    linuxredhat8] => Array
                                            (
                                                [
    timeout] => 
                                                [
    iface] => -I
                                                
    [ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                                
    [deadline] => -w
                                            
    )

                                        [
    linuxredhat9] => Array
                                            (
                                                [
    timeout] => -W
                                                
    [iface] => -I
                                                
    [ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                                
    [deadline] => -w
                                            
    )

                                        [
    windows] => Array
                                            (
                                                [
    timeout] => -w
                                                
    [iface] => 
                                                [
    ttl] => -i
                                                
    [count] => -n
                                                
    [quiet] => 
                                                [
    size] => -l
                                            
    )

                                        [
    hpux] => Array
                                            (
                                                [
    timeout] => 
                                                [
    iface] => 
                                                [
    ttl] => -t
                                                
    [count] => -n
                                                
    [quiet] => 
                                                [
    size] =>  
                                            )

                                        [
    aix] => Array
                                            (
                                                [
    timeout] => -i
                                                
    [iface] => 
                                                [
    ttl] => -T
                                                
    [count] => -c
                                                
    [quiet] => 
                                                [
    size] => -s
                                            
    )

                                    )

                            )

                        [
    args] => Array
                            (
                                [
    0] => unknown host
                                
    [1] => 1
                            
    )

                    )

                [
    2] => Array
                    (
                        [
    file] => /home1/airwavea/public_html/ping.php
                        
    [line] => 12
                        
    [function] => ping
                        
    [class] => Net_Ping
                        
    [type] => ->
                        [
    object] => Net_Ping Object
                            
    (
                                [
    _ping_path] => /bin/ping
                                
    [_result] => Array
                                    (
                                    )

                                [
    _OS_Guess] => 
                                [
    _sysname] => linux
                                
    [_args] => Array
                                    (
                                        [
    count] => 3
                                    
    )

                                [
    _noArgs] => 
                                [
    _argRelation] => Array
                                    (
                                        [
    sunos] => Array
                                            (
                                                [
    timeout] => 
                                                [
    ttl] => -t
                                                
    [count] =>  
                                                [
    quiet] => -q
                                                
    [size] =>  
                                                [
    iface] => -i
                                            
    )

                                        [
    freebsd] => Array
                                            (
                                                [
    timeout] => -t
                                                
    [ttl] => -m
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => 
                                                [
    iface] => 
                                            )

                                        [
    netbsd] => Array
                                            (
                                                [
    timeout] => -w
                                                
    [iface] => -I
                                                
    [ttl] => -T
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                            
    )

                                        [
    openbsd] => Array
                                            (
                                                [
    timeout] => -w
                                                
    [iface] => -I
                                                
    [ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                            
    )

                                        [
    darwin] => Array
                                            (
                                                [
    timeout] => -t
                                                
    [iface] => 
                                                [
    ttl] => 
                                                [
    count] => -c
                                                
    [quiet] => -q
                                                
    [size] => 
                                            )

                                        [
    linux] => Array
                                            (
                                                [
    timeout] => -W
                                                
    [iface] => 
                                                [
    ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                                
    [deadline] => -w
                                            
    )

                                        [
    linuxdebian] => Array
                                            (
                                                [
    timeout] => -W
                                                
    [iface] => 
                                                [
    ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                                
    [deadline] => -w
                                            
    )

                                        [
    linuxredhat8] => Array
                                            (
                                                [
    timeout] => 
                                                [
    iface] => -I
                                                
    [ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                                
    [deadline] => -w
                                            
    )

                                        [
    linuxredhat9] => Array
                                            (
                                                [
    timeout] => -W
                                                
    [iface] => -I
                                                
    [ttl] => -t
                                                
    [count] => -c
                                                
    [quiet] => -q
                                                
    [size] => -s
                                                
    [deadline] => -w
                                            
    )

                                        [
    windows] => Array
                                            (
                                                [
    timeout] => -w
                                                
    [iface] => 
                                                [
    ttl] => -i
                                                
    [count] => -n
                                                
    [quiet] => 
                                                [
    size] => -l
                                            
    )

                                        [
    hpux] => Array
                                            (
                                                [
    timeout] => 
                                                [
    iface] => 
                                                [
    ttl] => -t
                                                
    [count] => -n
                                                
    [quiet] => 
                                                [
    size] =>  
                                            )

                                        [
    aix] => Array
                                            (
                                                [
    timeout] => -i
                                                
    [iface] => 
                                                [
    ttl] => -T
                                                
    [count] => -c
                                                
    [quiet] => 
                                                [
    size] => -s
                                            
    )

                                    )

                            )

                        [
    args] => Array
                            (
                                [
    0] => codecall.net
                            
    )

                    )

            )

        [
    callback] => 

    I'm not sure if something isn't set right or what. Can anybody help?
    Last edited by Steele_Airwave; 09-20-2010 at 04:39 PM. Reason: Typos

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Installing PEAR
    By Ivenius in forum PHP Development
    Replies: 4
    Last Post: 09-05-2010, 08:03 AM
  2. PEAR mail failed to connect socket error
    By 123np in forum PHP Development
    Replies: 1
    Last Post: 06-17-2010, 06:43 AM
  3. Help with PEAR mail
    By 123np in forum PHP Development
    Replies: 1
    Last Post: 06-03-2010, 05:26 AM
  4. PEAR
    By mikelbring in forum PHP Development
    Replies: 4
    Last Post: 12-04-2008, 03:11 PM
  5. PEAR Standard
    By Jordan in forum General Programming
    Replies: 6
    Last Post: 08-03-2006, 02:47 PM

Tags for this Thread

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