php-windows Digest 8 May 2004 15:29:42 -0000 Issue 2242
Topics (messages 23647 through 23650):
Re: Problem with amazon jobs autoresponder
23647 by: Gryffyn, Trevor
23648 by: Svensson, B.A.T. (HKG)
23649 by: Gryffyn, Trevor
How to check port conection? socket_connect and fsockopen have problems
23650 by: Sherry
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Well, sounds like he may have fixed the problem. I havn't received one
of the messages for a while now so I'm guessing we're good to go.
I sent him a quick thanks on behalf of PHP-Win.. Hah. But I'm sure he
wouldn't mind a little pat on the back from some of the other
subscribers to this list. :)
-TG
-----Original Message-----
From: Viebrock, David [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 1:21 PM
To: Gryffyn, Trevor
Subject: RE: Problem with amazon jobs autoresponder
Hi,
I think I fixed this a couple days ago. I've been really busy and so
haven't had chance to email you before now. You shouldn't get any more
of these. Let me know if problems. Thanks.
-Dave
--- End Message ---
--- Begin Message ---
Well,
we all sure do appreciate the work by David at Amzon.com to remove this to
say the less annoying auto replays, but unfortunately I have to report that
I still got a "Amazon.com Jobs Application Auto-Reply" today when I posted a
message ( and probably will have another one after I've posted this one. :(
)
//Anders
-----Original Message-----
From: Gryffyn, Trevor
To: [EMAIL PROTECTED]
Sent: 7-5-2004 19:33
Subject: [PHP-WIN] FW: Problem with amazon jobs autoresponder
Well, sounds like he may have fixed the problem. I havn't received one
of the messages for a while now so I'm guessing we're good to go.
I sent him a quick thanks on behalf of PHP-Win.. Hah. But I'm sure
he wouldn't mind a little pat on the back from some of the other
subscribers to this list. :)
-TG
-----Original Message-----
From: Viebrock, David [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 1:21 PM
To: Gryffyn, Trevor
Subject: RE: Problem with amazon jobs autoresponder
Hi,
I think I fixed this a couple days ago. I've been really busy and so
haven't had chance to email you before now. You shouldn't get any more
of these. Let me know if problems. Thanks.
-Dave
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I received a message from David a minute after I sent that last message
asking for the mailing list email address to make sure it was on the
'exclude' list. That should fix the issue. I think initially he just
added my email address to the exclude list.
At any rate, guess this is becoming a proverbial dead horse. I have
faith that this is being resolved and shouldn't be a problem any longer.
If it pops up again in a week, then we know it's still an issue. But
until then I'd consider this 'resolved', sounds like David is on top of
things.
-TG
> -----Original Message-----
> From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 07, 2004 2:23 PM
> To: '[EMAIL PROTECTED] '
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: [PHP-WIN] FW: Problem with amazon jobs autoresponder
>
>
> Well,
>
> we all sure do appreciate the work by David at Amzon.com to
> remove this to say the less annoying auto replays, but
> unfortunately I have to report that I still got a "Amazon.com
> Jobs Application Auto-Reply" today when I posted a
> message ( and probably will have another one after I've
> posted this one. :(
> )
>
> //Anders
>
> -----Original Message-----
> From: Gryffyn, Trevor
> To: [EMAIL PROTECTED]
> Sent: 7-5-2004 19:33
> Subject: [PHP-WIN] FW: Problem with amazon jobs autoresponder
>
> Well, sounds like he may have fixed the problem. I havn't
> received one
> of the messages for a while now so I'm guessing we're good to go.
>
> I sent him a quick thanks on behalf of PHP-Win.. Hah. But I'm sure
> he wouldn't mind a little pat on the back from some of the other
> subscribers to this list. :)
>
> -TG
--- End Message ---
--- Begin Message ---
Hi, I have Apache 1.3.29+PHP 4.3.6 on WinXP.
I need to check some services (ftp, http, smtp) on other machines for
availability.
--- Method 1 ---
So I try to use fsockopen:
$handle = fsockopen($ip, $port, $errno, $errstr, 5);
if ($handle) { close($handle); $online=1; } else {
$online=0; }
Everything looks fine, but there is one problem. Apache open 2 kind of
connections when I call fsockopen.
It looks in TCPView like:
apache.exe src_host:src_port host:0 LISTENING
apache.exe src_host:src_port dest_host:dest_port SYN_SENT
When 5 seconds timeout occurs, apache closes second connection, but leave
first connection alive!
So, if I try to call fsockopen 1000 times, I got 1000 connections from
apache in LISTENING state!
Is there any ways to solve this problem?
--- Method 2 ---
When I try to use socket_connect, there is other problem appear.
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$exist = socket_connect($socket, $host, $port);
if ($exist) { socket_shutdown($socket); socket_close($socket);
$online=1; } else { $online=0; }
Socket_close works normally, but it leaves connection in TIME_WAIT state.
This connections closes automaticaly when time_wait timeout occurs, but this
timeout is very large! How I can make it smaller?
--- Method 3, etc? ---
Or may be there exist some other ways to check port and services for
availability???
With best regards,
Sherry.
--- End Message ---