Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13987 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70027 invoked by uid 1010); 2 Dec 2004 18:28:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66719 invoked from network); 2 Dec 2004 18:27:40 -0000 Received: from unknown (HELO charon.simplot.com) (12.18.144.212) by pb1.pair.com with SMTP; 2 Dec 2004 18:27:40 -0000 Received: from occ01mx003.na.simplot.com (10.10.6.25) by charon.simplot.com (MX V5.3 AnGp) with SMTP for ; Thu, 2 Dec 2004 11:27:37 -0700 Received: from 10.10.6.4 by occ01mx003.na.simplot.com (InterScan E-Mail VirusWall NT); Thu, 02 Dec 2004 11:27:36 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-c2b89117-9b50-435f-84bf-28ca197a00fe" Date: Thu, 2 Dec 2004 11:30:17 -0700 Message-ID: <5367F26C013DE8429873569307F6F4A35AA5F2@OCC01MX023.na.simplot.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: more ftp functions Thread-Index: AcTYnPjW+vqkWr9aSmOW+bnQOR0NHQ== To: Subject: more ftp functions From: Jesse.Binam@simplot.com ("Binam, Jesse") ------=_NextPartTM-000-c2b89117-9b50-435f-84bf-28ca197a00fe Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4D89C.98B3D651" ------_=_NextPart_001_01C4D89C.98B3D651 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I apologize if I am posting this to the wrong list I am a newbie to the lists. =20 I would like to add some functions to the ftp extention. Most notably at this point I am interested in a ftp_get_resp() that returns ftp->inbuf and perhaps the response code from the server. Or maybe it could return the whole conversation. A (very) basic example of what I am aiming for is below. How should I proceed? =20 Thanks, Jess =20 =20 =20 =20 ------_=_NextPart_001_01C4D89C.98B3D651 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I = apologize if I am=20 posting this to the wrong list I am a newbie to the = lists.
 
I = would like to add=20 some functions to the ftp extention. Most notably at this point I am = interested=20 in a ftp_get_resp() that returns ftp->inbuf and perhaps the response = code=20 from the server. Or maybe it could return the whole conversation. A = (very)=20 basic example of what I am aiming for is below. How should I=20 proceed?
 
Thanks,
Jess
 
<?php
 
$conn = =3D=20 ftp_connect('ftp.somewhere.com');
$ok = =3D=20 ftp_login($conn,'user','pass');
if(!$ok){=20 echo=20 ftp_get_resp($conn); }
$ok = =3D=20 ftp_put();
if(!$ok){=20 echo=20 ftp_get_resp($conn); }
 
?>
 
 
 
------_=_NextPart_001_01C4D89C.98B3D651-- ------=_NextPartTM-000-c2b89117-9b50-435f-84bf-28ca197a00fe--