[ciapug] Mail Delivery Status Notification

Postmaster ciapug@cialug.org
13 Jan 2004 13:47:26 -0600


------_=_NextPart_1
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_2"


------_=_NextPart_2
Content-Type: text/plain;

MAIL ESSENTIALS SENDER NOTIFICATION

The following message:

TO:      chettinger@encompas.com
FROM:    dave@visionary.com
DATE:     Tue, 13 Jan 2004 13:45:05 -0600
Subject: Re: [ciapug] TCP devel


has been <Quarantined> by Mail Essentials for the following reason(s):


REASON:Your email may contain inappropriate content or a harmful virus.

 Encompass IT staff

------_=_NextPart_2--
------_=_NextPart_1
Content-Type: message/rfc822;
	name="Message.eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
	filename="Message.eml"

X-MESINK_Sender: ciapug-admin@cialug.org
X-MESINK_SenderType: SMTP
X-MESINK_MailFor: chettinger@encompas.com
X-MESINK_MailForType: SMTP
X-MESINK_Inbound: 1
Received: from www.cialug.org ([209.234.66.81]) by encmail2.encompas.com with Microsoft SMTPSVC(5.0.2195.5329);
	 Tue, 13 Jan 2004 13:47:22 -0600
Received: from www.cialug.org (localhost [127.0.0.1])
	by www.cialug.org (Postfix) with ESMTP
	id 5FFF71A275; Tue, 13 Jan 2004 13:46:03 -0600 (CST)
Delivered-To: ciapug@cialug.org
Received: from pop.visionary.com (ns.visionary.com [209.234.66.190])
	by www.cialug.org (Postfix) with ESMTP id F21AA1A23F
	for <ciapug@cialug.org>; Tue, 13 Jan 2004 13:45:11 -0600 (CST)
Received: from visionary.com (unknown [209.234.71.242])
	by pop.visionary.com (Postfix) with ESMTP id C8F6815769B
	for <ciapug@cialug.org>; Tue, 13 Jan 2004 13:45:11 -0600 (CST)
Message-ID: <40044AC1.9030809@visionary.com>
From: David Champion <dave@visionary.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ciapug@cialug.org
Subject: Re: [ciapug] TCP devel
References: <1074020565.14508.73.camel@localhost.localdomain>
In-Reply-To: <1074020565.14508.73.camel@localhost.localdomain>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: ciapug-admin@cialug.org
Errors-To: ciapug-admin@cialug.org
X-BeenThere: ciapug@cialug.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: ciapug@cialug.org
List-Help: <mailto:ciapug-request@cialug.org?subject=help>
List-Post: <mailto:ciapug@cialug.org>
List-Subscribe: <http://cialug.org/mailman/listinfo/ciapug>,
	<mailto:ciapug-request@cialug.org?subject=subscribe>
List-Id: <ciapug.cialug.org>
List-Unsubscribe: <http://cialug.org/mailman/listinfo/ciapug>,
	<mailto:ciapug-request@cialug.org?subject=unsubscribe>
List-Archive: <http://cialug.org/pipermail/ciapug/>
Date: Tue, 13 Jan 2004 13:45:05 -0600
Return-Path: ciapug-admin@cialug.org
X-OriginalArrivalTime: 13 Jan 2004 19:47:23.0073 (UTC) FILETIME=[10153B10:01C3DA0E]

Ryan O'Rourke wrote:

>First off, I'd like to introduce myself since I'm new to this list -
>although I probably know many of you from such lists as cialug or
>amesfug :-)
>I'm a network and sysadmin for a small retail chain in Ames. I don't do
>any development yet, but I try to pick things up and try to help our
>developer as much as possible. Our entire operation is in the process of
>making the transition from MS to Linux and Open Source. This creates
>some, shall we call them, "learning opportunities" for our developer as
>he is very new to such concepts as Perl, PHP, MySQL, etc.
>I appreciate your help as we all learn! Please bear with me as I try to
>explain our problems in layman's terms.
>Oh, and one other note, if any of you ever see any code that creates a
>security concern or is just plain stupid please speak up! You won't
>offend anyone here!
>
>Anyway, we're trying to do some credit authorization type transactions
>where we send data across a TCP port, wait for a reply, process that
>reply, and continue the communication back and forth. 
>Apparently, we can send data, but when the response comes back our
>script hangs and the socket does not close.
>We're using:
>RedHat AS 2.1
>PHP 4.1.2-2.1.6 (newest version available in RPM format for RH EL)
>Apache 1.3.23-10 
>
>The code:
>$length = strlen($output);
>$hexlength = dechex($length);
>$hexlength1 = "\x95";
>$header = "\x02\x46\x44\x02\x00$hexlength1";
>$footer = "\x03\x46\x44\x03";
>$header .= "$output$footer";
>$output = "$header";
>
>
>$host = "206.201.XXX.XXX";
>$port = XXXXX;
>
>//Open a client connection
>$fp = fsockopen($host, $port, $errno, $errstr);
>
>if (!$fp){
>$result = "Error: Could not open socket connection";
>}else{
>//Write the user string to the socket
>fputs ($fp, $output, strlen($output));
>//get the result
>while(!eof($fp))
>{
>$result .= fgets($fp, 1024);
>}
>//close the connection
>fclose($fp);
>}
>
>
>I should also add that our developer is pushing me to upgrade to PHP 4.3
>since it supports streams - http://us2.php.net/manual/en/ref.stream.php
>He thinks no support for streams is the root of the problem here. I
>don't want to upgrade to PHP 4.3 since that will mean using an
>unsupported version on a box where we're paying $1,500/yr for support.
>
>Thanks in advance!
>
>  
>

What system are you using that doesn't offer an update to PHP 4.3.x?

I would suggest putting PHP 4.3.x on a test box, and see if using 
streams fixes your problem. If it does... then it's probably worth updating.

-dc


_______________________________________________
ciapug mailing list
ciapug@cialug.org
http://cialug.org/mailman/listinfo/ciapug


------_=_NextPart_1--