Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31902 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26630 invoked by uid 1010); 24 Aug 2007 16:05:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26607 invoked from network); 24 Aug 2007 16:05:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2007 16:05:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=parasane@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=parasane@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.184 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: parasane@gmail.com X-Host-Fingerprint: 209.85.198.184 rv-out-0910.google.com Received: from [209.85.198.184] ([209.85.198.184:54614] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/44-31863-9B10FC64 for ; Fri, 24 Aug 2007 12:05:16 -0400 Received: by rv-out-0910.google.com with SMTP id k15so718445rvb for ; Fri, 24 Aug 2007 09:05:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VFfOgHdllIjfVMi2XOm8e1KO9gw36lKgFw8IOZlm2uJX2qg2F7y4bcO6xVeWj+aq8G63YOQHAT3pdmYdX0jLo9GlYUG8jFQRRQAT39aSArAiDxT12GNFH7JdIYA9U6C6dUm91ukVlw9PFXUBKeauQgpXmXS6R9hhSlvoN4ZUctk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Og5o8CdfKIcmdb49XPMkpkgd/CkHqO2LAX0L+hu5kARHRbCdMeV4wgFoe9hSJeiHF195hrQNeEDLtYnf08Tl3O8HxvW3xrsI2YSpAZsflf8QOrQeAj+BGTeQUV2tylaVrFdApon87co399TgeREx0n6d80B1/BVqbYepMGguS64= Received: by 10.141.210.5 with SMTP id m5mr604344rvq.1187971506158; Fri, 24 Aug 2007 09:05:06 -0700 (PDT) Received: by 10.140.178.10 with HTTP; Fri, 24 Aug 2007 09:05:06 -0700 (PDT) Message-ID: Date: Fri, 24 Aug 2007 12:05:06 -0400 To: "Steve Francisco" Cc: internals@lists.php.net In-Reply-To: <6C.C3.31863.AFFFEC64@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6C.C3.31863.AFFFEC64@pb1.pair.com> Subject: Re: [PHP-DEV] How to integrate PHP with my homegrown server From: parasane@gmail.com ("Daniel Brown") On 8/24/07, Steve Francisco wrote: [snip!] > Thanks Daniel, I can certainly do that in Java without much trouble, > however I was hoping to avoid needing to do things in each php file to > convert argv into $_GET. I want to be able to serve standard PHP > without modifying each one. > > But you made me realize there is a way. I wrote a small "pre.php" file > like this: > # > for($i=1;$i $variables = split("=",$argv[$i]); > $_GET[$variables[0]] = $variables[1]; > } > ?> > > and in my php.ini, I set this: > auto_prepend_file =e:\php523\pre.php > > Now it works fine without having to modify the php code! All I need to > do is have the Java code set up the html parms as argv, and I'm done. > -- Steve That was actually what I was getting at, but because I went to test it on my own box to be certain it would work, I apparently forgot to type it into the email. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-General list.... 50% off for life on web hosting plans $10/mo. or more at http://www.pilotpig.net/. Use the coupon code phpgeneralaug07 Register domains for about $0.01 more than what it costs me at http://domains.pilotpig.net/.