Re: no traffic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Franks, corrected but still same problem...

On Tue, Mar 6, 2012 at 9:33 AM, Frank Arensmeier <farensmeier@xxxxxxxxx>wrote:

>
> 6 mar 2012 kl. 15.29 skrev Mike Mackintosh:
>
> > On Mar 6, 2012, at 8:55, Lawrence Decker <lld0227@xxxxxxxxx> wrote:
> >
> >> I've been playing with PHP for about 6 years and I have no idea why
> this is
> >> happening... I've been writing a script to auth to AD.  When I run the
> >> script on my dev box, nothing.  I have wireshark running in the
> background
> >> on the dev box, I can see the script's traffic go out and hit the DNS
> >> server but no other traffic. Command line, no problem talking to other
> >> hosts with whatever port I'm trying to hit.  On my box, all the scripts
> >> work fine.  LDAP is enabled, but I can't hit ANY port other than DNS
> and if
> >> I use the IP in the script, I see no traffic.  Both are FC16-64 patched
> as
> >> of last week. I matched line-by-line in the phpinfo() on my box and the
> dev
> >> box - no difference.  Used this script to try any port open on other
> hosts
> >> but no traffic shows up in wireshark!! Any ideas????
> >>
> >>
> >> Lawrence
> >>
> >>
> >>
> >> <?php
> >> function ping($host,$post=25,$timeout=6)
> >>
> >> {
> >> $fsock = fsockopen($host, $port, $errno, $errstr, $timeout);
> >> if ( ! $fsock )
> >> {
> >>  return FALSE;
> >> }
> >> else
> >> {
> >>  return TRUE;
> >> }
> >> }
>
> Have you noticed that you have a typo in your function? '$post' should be
> '$port'...
>
> /frank
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux