[ciapug] Mail Delivery Status Notification
Postmaster
ciapug@cialug.org
13 Jan 2004 13:32:59 -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: ryano@ch-gifts.com
DATE: 13 Jan 2004 13:02:45 -0600
Subject: [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:04:37 -0600
Received: from www.cialug.org (localhost [127.0.0.1])
by www.cialug.org (Postfix) with ESMTP
id B613E1A275; Tue, 13 Jan 2004 13:03:03 -0600 (CST)
Delivered-To: ciapug@cialug.org
Received: from localhost.localdomain (mail.ch-gifts.com [63.175.165.130])
by www.cialug.org (Postfix) with ESMTP id 649931A23F
for <ciapug@cialug.org>; Tue, 13 Jan 2004 13:02:44 -0600 (CST)
Received: from [10.1.10.130] ([10.1.10.130])
by localhost.localdomain (8.12.8/8.12.5) with ESMTP id i0DJ2oKX013305
for <ciapug@cialug.org>; Tue, 13 Jan 2004 13:02:50 -0600
From: "Ryan O'Rourke" <ryano@ch-gifts.com>
To: ciapug@cialug.org
Content-Type: text/plain
Organization:
Message-Id: <1074020565.14508.73.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5)
Content-Transfer-Encoding: 7bit
Subject: [ciapug] TCP devel
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: 13 Jan 2004 13:02:45 -0600
Return-Path: ciapug-admin@cialug.org
X-OriginalArrivalTime: 13 Jan 2004 19:04:37.0991 (UTC) FILETIME=[172CC770:01C3DA08]
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!
-- Ryan
_______________________________________________
ciapug mailing list
ciapug@cialug.org
http://cialug.org/mailman/listinfo/ciapug
------_=_NextPart_1--