Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11313 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17798 invoked by uid 1010); 17 Jul 2004 13:35:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16865 invoked by uid 1007); 17 Jul 2004 13:35:08 -0000 To: internals@lists.php.net, David Carter Message-ID: <40F92B04.3050507@128kb.com> Date: Sat, 17 Jul 2004 09:35:00 -0400 User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 CC: internals@lists.php.net References: <1089955317.20273.36.camel@vanier.entertain-me.com> In-Reply-To: <1089955317.20273.36.camel@vanier.entertain-me.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 68.112.247.235 Subject: Re: Question from a new module developer From: jhannus@128kb.com (Justin Hannus) David Carter wrote: > Hi, > > I'm developing a standalone module that needs to hook into another > Apache module. I need a pointer to a request record (request_rec) to > make the apache call, but I can't seem to find how to access one from a > module. (or alternatively, a way to get a current request from within an > Apache module). > > Help! > > TIA, > Dave You might be looking for: ((request_rec *)SG(server_context)) Have a look at sapi/apache/php_apache.c for some examples.