Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48066 invoked by uid 1010); 3 Dec 2004 06:47:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47885 invoked from network); 3 Dec 2004 06:47:31 -0000 Received: from unknown (HELO charon.simplot.com) (12.18.144.212) by pb1.pair.com with SMTP; 3 Dec 2004 06:47:31 -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 23:47:29 -0700 Received: from 10.10.6.4 by occ01mx003.na.simplot.com (InterScan E-Mail VirusWall NT); Thu, 02 Dec 2004 23:47:28 -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-5d2bae81-8750-4268-8935-32f317f5bd8a" Date: Thu, 2 Dec 2004 23:50:10 -0700 Message-ID: <5367F26C013DE8429873569307F6F4A35AAD84@OCC01MX023.na.simplot.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] more ftp functions Thread-Index: AcTYnPjW+vqkWr9aSmOW+bnQOR0NHQAZiaUQ To: Subject: RE: [PHP-DEV] more ftp functions From: Jesse.Binam@simplot.com ("Binam, Jesse") ------=_NextPartTM-000-5d2bae81-8750-4268-8935-32f317f5bd8a Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4D903.F48ADADC" ------_=_NextPart_001_01C4D903.F48ADADC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Let me rephrase that. This is my first contribution to php or any open source project for that matter, and I have no idea what the process is. Do I need to write the code first and submit a patch to someone? Do I need to work with someone since I assume don't have CVS write access? Is the process in the comments or documented somewhere and I am going to get flamed for not reading them? ;) =20 Thanks, Jess ________________________________ From: Binam, Jesse [mailto:Jesse.Binam@simplot.com]=20 Sent: Thursday, December 02, 2004 11:30 AM To: internals@lists.php.net Subject: [PHP-DEV] more ftp functions 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_01C4D903.F48ADADC Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Let me rephrase that. This is my first = contribution to=20 php or any open source project for that matter, and I have no idea what = the=20 process is. Do I need to write the code first and submit a patch to = someone? Do=20 I need to work with someone since I assume don't have CVS write access? = Is the=20 process in the comments or documented somewhere and I am going to get = flamed for=20 not reading them? ;)
 
Thanks,
Jess


From: Binam, Jesse=20 [mailto:Jesse.Binam@simplot.com]
Sent: Thursday, December 02, = 2004=20 11:30 AM
To: internals@lists.php.net
Subject: = [PHP-DEV] more=20 ftp functions

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_01C4D903.F48ADADC-- ------=_NextPartTM-000-5d2bae81-8750-4268-8935-32f317f5bd8a--