Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15258 invoked from network); 2 Jun 2009 20:55:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2009 20:55:15 -0000 Authentication-Results: pb1.pair.com header.from=bnagwani@juniper.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=bnagwani@juniper.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain juniper.net from 64.18.2.217 cause and error) X-PHP-List-Original-Sender: bnagwani@juniper.net X-Host-Fingerprint: 64.18.2.217 exprod7og115.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [64.18.2.217] ([64.18.2.217:45594] helo=exprod7og115.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/4C-01606-1B1952A4 for ; Tue, 02 Jun 2009 16:55:15 -0400 Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP ID DSNKSiWRr9I+DNOq17HVymG4jVCjSt24uZ82@postini.com; Tue, 02 Jun 2009 13:55:14 PDT Received: from EMBX02-HQ.jnpr.net ([fe80::18fe:d666:b43e:f97e]) by P-EMHUB03-HQ.jnpr.net ([fe80::a124:1ab1:8e0b:f671%11]) with mapi; Tue, 2 Jun 2009 13:55:08 -0700 To: "internals@lists.php.net" Date: Tue, 2 Jun 2009 13:55:06 -0700 Thread-Topic: Question on file upload Thread-Index: AcnjxGiarypSa4WSTiWag7oytOH3Mw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_DBDEC20E6E29304D8AE5EAA493609B3555C425BC37EMBX02HQjnprn_" MIME-Version: 1.0 Subject: Question on file upload From: bnagwani@juniper.net (Bharat Nagwani) --_000_DBDEC20E6E29304D8AE5EAA493609B3555C425BC37EMBX02HQjnprn_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, I want to change the way file upload processing is done in php. We have a h= ttp server (appweb) that puts the uploaded file to a temp directory. This file has headers at t= he beginning and end. I am looking at code rfc1867.c. This code takes the temp file and seems to = extract the real file. I want to change it so instead of entire file, I can run a system awk comma= nd to trim the header lines to get the actual file. Has anyone done something similar? I cant find the place where the actual f= ile is being read? Can someone please point to that. This is php 5.2 on bsd. Thanks --_000_DBDEC20E6E29304D8AE5EAA493609B3555C425BC37EMBX02HQjnprn_--