From jmurphy@example.com Sat Sep 01 21:50:00 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 84928 invoked by uid 500); 1 Sep 2001 21:50:00 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 84911 invoked from network); 1 Sep 2001 21:49:59 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: "David Pickens" <jmurphy@example.com> Cc: <jmurphy@example.com> References: <jmurphy@example.com> Subject: Re: Apparent Caching problem Date: Sat, 1 Sep 2001 23:51:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > Thank you for looking into my problem. I am attaching a zip file with a > copy of the emperl log of a failed view (first), and a successful > view(second), as well as all of the files evaluated during execution. > > I have changed the password string, but everything else is identical to the > files here on my server. > > It seems that, in the logs, the difference takes place at lines 406 and 766: > At 406, "fellowship_listing" follows EVAL, but none of the code from that > subroutine seems to be run. > At 766, "fellowship_listing" follows EVAL, and the code is included. > The anwser is quite simple. The Embperl sub fellowship_listing isn't defined at the first run. Perl takes it as string as you see in the log: [1068]SRC: Line 33: [- fellowship_listing -] [1068]EVAL< fellowship_listing [1068]EVAL> fellowship_listing After the sub is defined it is executed. Simply move the [$ sub fellowship_listing $] ... [$endsub$] before the first call to it and it will work Unlike Perl, Embperl's subs have to be declared before the code that calls them. (This changes in EMbperl 2.0, so 2.0 will behave like Perl and your code would have worked) Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Sun Sep 02 14:38:24 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 30037 invoked by uid 500); 2 Sep 2001 14:38:23 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 30010 invoked from network); 2 Sep 2001 14:38:23 -0000 Mime-Version: 1.0 X-Sender: nazgul%somewhere.com@gate Message-Id: <p05100322b7b7f26357de@[83.161.120.155]> Date: Sun, 2 Sep 2001 10:31:13 -0400 To: jmurphy@example.com From: Kee Hinckley <jmurphy@example.com> Subject: Not cleaning up DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset variables (Embperl 1.3.3) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm trying to make a recordset persistent so that it doesn't have to repeatedly load the meta-data and type translation code every time a page loads. However it appears that the code in Embperl.pm deletes recordsets without checking to see whether I've added them to the CLEANUP hash. Am I missing something here? Is there a way I can avoid doing this every time? *set = DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset->Setup({ '!DataSource' => $db, '!Table' => $this->{calTable}, '!PrimKey' => 'id', '!Filter' => { 'startdate' => $dateparse, 'stopdate' => $dateparse, 'starttime' => $timeparse, 'stoptime' => $timeparse, #!! This is a hack. We should insure this is unique. 'id' => [ sub { if ($_[0] eq '') { return time(); } else { return $_[0]; } }, undef ], }, }); - -- Kee Hinckley - Somewhere.Com, LLC http://consulting.somewhere.com/ I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's. -----BEGIN PGP SIGNATURE----- Version: PGP Personal Security 7.0.3 iQA/AwUBO5JEYyZsPfdw+r2CEQJKDACgm9oftPsXJnD8v14qFBAkOWgdaLgAnizy HQxqX4mEtdIkhzlIEO9kl7lV =w8YP -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Sun Sep 02 18:03:37 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 96518 invoked by uid 500); 2 Sep 2001 18:03:37 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 96507 invoked from network); 2 Sep 2001 18:03:36 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: <jmurphy@example.com>, "Kee Hinckley" <jmurphy@example.com> References: <p05100322b7b7f26357de@[83.161.120.155]> Subject: Re: Not cleaning up DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset variables (Embperl 1.3.3) Date: Sun, 2 Sep 2001 20:05:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > I'm trying to make a recordset persistent so that it doesn't have to > repeatedly load the meta-data and type translation code every time a > page loads. However it appears that the code in Embperl.pm deletes > recordsets without checking to see whether I've added them to the > CLEANUP hash. Am I missing something here? Is there a way I can > avoid doing this every time? > You are right Embperl ignores CLEANUP for Recordset obejcts, change line 1334 and 1414 in Embperl.pm to if (defined (*ENTRY{SCALAR}) && defined (${$glob}) && ref (${$glob}) eq 'DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset' && !(defined ($addcleanup -> {$key}) && $addcleanup -> {$key} == 0)) then it should work. Another solution is to use the TableAttr method to set filters etc. e.g. $db -> TableAttr ('tabname', '!PrimKey', 'id') ; you have to do it only once when you create the database object, and it will be used by all Recordset objects that get's this database object Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 04:56:10 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 96890 invoked by uid 500); 3 Sep 2001 04:56:10 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 96878 invoked from network); 3 Sep 2001 04:56:09 -0000 Date: Mon, 3 Sep 2001 06:56:47 +0200 From: Lukas Zapletal <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: Lukas Zapletal <jmurphy@example.com> Organization: BACH systems s.r.o. X-Priority: 3 (Normal) Message-ID: <jmurphy@example.com> To: "Gerald Richter" <jmurphy@example.com> CC: "EmbPerl" <jmurphy@example.com> Subject: Re[2]: empty %fdat (LONG) In-Reply-To: <jmurphy@example.com> References: <jmurphy@example.com> <jmurphy@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >> SetEnv EMBPERL_OPTIONS 272 >> GR> This sets GR> optRawInput = 16 GR> optDisableFormData = 256 GR> so if you disable the setup of form data (%fdat), you shouldn't wonder if GR> Embperl does what you say :-) Oh god! I`m so stupid! :-) I`m really ashamed of it! :-0 Thanks Regards Lukas Zapletal [jmurphy@example.com] web programmer Bach systems Ltd., Czech Republic ----------- PGP FINGERPRINT ------------ 4BA4ECA3EDE9608558646ABBA14259E3459FA0B4 --------------- COOKIE ----------------- A Linux machine! because a 486 is a terrible thing to waste! --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 06:23:51 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 24137 invoked by uid 500); 3 Sep 2001 06:23:50 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 24126 invoked from network); 3 Sep 2001 06:23:50 -0000 X-Originating-IP: [83.161.120.155] From: "alan milligan" <jmurphy@example.com> To: jmurphy@example.com Bcc: Subject: so whats different about Inline???? Date: Mon, 03 Sep 2001 06:23:32 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: <jmurphy@example.com> X-OriginalArrivalTime: 03 Sep 2001 06:23:33.0126 (UTC) FILETIME=[F4B6DA60:01C13440] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, Two simple and supposedly equivalent scripts follow: Script 1: test.pl ############## use Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User; my $user = Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User->login($ARGV[0], $ARGV[1]); if (defined $user) { print join ' ', $user->name, ' has groups ', $user->groups, "\n"; } else { print "invalid user/pwd\n"; } Script 2: test.epl ############## <!DOCTYPE HTML PUBLIC "-//W3C//DTable HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="/balclutha.css"> </head> [! use Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User; !] <body> [* my $user = Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User->login($fdat{u},$fdat{p}); if (defined $user) { *] User: [+ $user->name +] has groups [+ $user->groups +]<br> [* } else { *] Invalid User/Pwd<br> [* } *] </body> </html> Now for the test ........ [root@mistress perl]# perl test.pl alan alan01 alan has groups alan root web cvs [root@mistress perl]# embpexec.pl test.epl 'u=fortress&p=fortress' [4863]ERR: 24: Line 1: Error in Perl code: Undefined subroutine &Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Implementations888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ourierUser888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4_getGroups called at Balclutha/Implementations/CourierUser.pm line 27. <HTML><HEAD><TITLE>Embperl Error</TITLE></HEAD><BODY bgcolor="#FFFFFF"> <H1>Internal Server Error</H1> The server encountered an internal error or misconfiguration and was unable to complete your request.<P> Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.<P><P> [4863]ERR: 24: Line 1: Error in Perl code: Undefined subroutine &amp;Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Implementations888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ourierUser888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4_getGroups called at Balclutha/Implementations/CourierUser.pm line 27.<p> Offline HTML888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mbperl 2.0b3 [Mon Sep 3 07:35:53 2001]<P> </BODY></HTML> One or more DATA sections were not processed by Inline. I am baffled as to why there is an undefined subroutine in the embpexec.pl invokation (and in the mod_perl request for that matter...). The Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User class has amongst supported implementations a Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Implementations888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ourierUser object which it delegates requests to, a simple letter-envelope OO paradigm. All the symbols for this are correctly obtained, the test.pl script verifies this. The Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Implementations888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ourierUser package uses the Inline package to wrap some grubby C code which does the work. The _getGroups call is one of these 'private' functions. The following statement inside this package, use Inline (Config => DIRECTORY => '/usr/local/apache/_Inline', ENABLE => 'UNTAINT'); indicates where all these symbols are compiled to and may be found (and indeed they are ...). I have used Perl XS/SWIG over the years, but this is my first foray into Inline (which is remarkably simple to use). To my knowledge an inline'd package may be treated like all other Perl packages. Does anyone know what is at issue and how to correct this untoward behaviour? Cheers, Alan _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 07:13:49 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 44507 invoked by uid 500); 3 Sep 2001 07:13:48 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 44496 invoked from network); 3 Sep 2001 07:13:48 -0000 Date: Mon, 3 Sep 2001 09:14:30 +0200 From: Lukas Zapletal <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: Lukas Zapletal <jmurphy@example.com> Organization: BACH systems s.r.o. X-Priority: 3 (Normal) Message-ID: <jmurphy@example.com> To: EmbPerl <jmurphy@example.com> Subject: Two frame application MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello EmbPerl, I have these files: /constants.epl /topbar/base.epl /main/base.epl constants.epl: [! use Carp; $req = shift; $req->{appname} = "test app"; !] I need to execute constants in both bases. Execute('../constants.epl') doesn`t work. How can I do it? Regards Lukas Zapletal [jmurphy@example.com] web programmer Bach systems Ltd., Czech Republic ----------- PGP FINGERPRINT ------------ 4BA4ECA3EDE9608558646ABBA14259E3459FA0B4 --------------- COOKIE ----------------- Get it up, keep it up... LINUX: Viagra for the PC. --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 09:09:44 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 15244 invoked by uid 500); 3 Sep 2001 09:09:44 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 15219 invoked from network); 3 Sep 2001 09:09:43 -0000 Resent-From: jmurphy@example.com From: jmurphy@example.com Date: Mon, 3 Sep 2001 18:25:17 +1000 To: Lukas Zapletal <jmurphy@example.com> Subject: Re: Two frame application Message-ID: <jmurphy@example.com> References: <jmurphy@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <jmurphy@example.com>; from jmurphy@example.com on Mon, Sep 03, 2001 at 09:14:30AM +0200 Resent-Date: Mon, 3 Sep 2001 19:09:45 +1000 Resent-To: Embperl Users <jmurphy@example.com> Resent-Message-Id: <jmurphy@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Mon, Sep 03, 2001 at 09:14:30AM +0200, Lukas Zapletal wrote: EMBPERL_OBJECT_ADDPATH is your friend. It is *always* added to the searchpath. I usually have something like this: EMBPERL_OBJECT_STOPDIR=/your/www/root EMBPERL_OBJECT_ADDPATH=/your/www/root/defaults So something like: /your/www/root/defaults/constants.epl /your/www/root/topbar/base.epl (executes constants.epl) /your/www/root/main/base.epl (executes constants.epl) should work for you. I use a seperate directory to the normal search path mostly for keeping the main hierarchy as clean as possible. You may or may not want to > I have these files: > > /constants.epl > /topbar/base.epl > /main/base.epl > > constants.epl: > [! > use Carp; > > $req = shift; > $req->{appname} = "test app"; > !] > > > I need to execute constants in both > bases. Execute('../constants.epl') doesn`t work. How can I do it? -- Andrew O'Brien Product Engineer email: jmurphy@example.com. Switch Online Group Pty Limited phone: 402.955.5320 ABN 89 092 286 327 fax: 402.955.5320 --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 09:44:29 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 41169 invoked by uid 500); 3 Sep 2001 09:44:29 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 41158 invoked from network); 3 Sep 2001 09:44:28 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: "Lukas Zapletal" <jmurphy@example.com>, "EmbPerl" <jmurphy@example.com> References: <jmurphy@example.com> Subject: Re: Two frame application Date: Mon, 3 Sep 2001 11:46:13 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > I have these files: > > /constants.epl > /topbar/base.epl > /main/base.epl > > constants.epl: > [! > use Carp; > > $req = shift; > $req->{appname} = "test app"; > !] > > > I need to execute constants in both bases. Execute('../constants.epl') doesn`t > work. How can I do it? > You can use EMBPERL_OBJECT_STOPDIR and set it to the root of your web, so EmbperlObject doesn't only search back to the location where base.epl is located, but one level higher. As Andrew already wrote EMBPERL_OBJECT_ADDPATH is handy for inlcuding auxliary files like your constants. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 09:46:46 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 44414 invoked by uid 500); 3 Sep 2001 09:46:45 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 44403 invoked from network); 3 Sep 2001 09:46:44 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: "alan milligan" <jmurphy@example.com>, <jmurphy@example.com> References: <jmurphy@example.com> Subject: Re: so whats different about Inline???? Date: Mon, 3 Sep 2001 11:48:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I don't have used Inline so far. What comes to my mind is, that Inline creates some helperfiles in the filesystem (it has to compile your C code to a library and load it afterwards). Maybe there is a problem with file permission, so these files can't be read. When running under Apache you access these files as a different user. Make sure that these files are accessable by the Apache user. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- ----- Original Message ----- From: "alan milligan" <jmurphy@example.com> To: <jmurphy@example.com> Sent: Monday, September 03, 2001 6:23 AM Subject: so whats different about Inline???? > Hi, > > Two simple and supposedly equivalent scripts follow: > > Script 1: test.pl > ############## > use Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User; > > my $user = Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User->login($ARGV[0], $ARGV[1]); > if (defined $user) { > print join ' ', $user->name, ' has groups ', $user->groups, "\n"; > } > else { > print "invalid user/pwd\n"; > } > > Script 2: test.epl > ############## > <!DOCTYPE HTML PUBLIC "-//W3C//DTable HTML 4.01 Transitional//EN"> > <html> > <head> > <link rel="stylesheet" href="/balclutha.css"> > </head> > [! > use Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User; > !] > <body> > [* > my $user = Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User->login($fdat{u},$fdat{p}); > if (defined $user) { > *] > User: [+ $user->name +] has groups [+ $user->groups +]<br> > [* } else { *] > Invalid User/Pwd<br> > [* } *] > </body> > </html> > > > Now for the test ........ > > [root@mistress perl]# perl test.pl alan alan01 > alan has groups alan root web cvs > > [root@mistress perl]# embpexec.pl test.epl 'u=fortress&p=fortress' > [4863]ERR: 24: Line 1: Error in Perl code: Undefined subroutine > &Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Implementations888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ourierUser888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4_getGroups called at > Balclutha/Implementations/CourierUser.pm line 27. > <HTML><HEAD><TITLE>Embperl Error</TITLE></HEAD><BODY bgcolor="#FFFFFF"> > <H1>Internal Server Error</H1> > The server encountered an internal error or misconfiguration and was unable > to complete your request.<P> > Please contact the server administrator, and inform them of the time the > error occurred, and anything you might have done that may have caused the > error.<P><P> > [4863]ERR: 24: Line 1: Error in Perl code: Undefined subroutine > &amp;Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Implementations888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ourierUser888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4_getGroups called at > Balclutha/Implementations/CourierUser.pm line 27.<p> > Offline HTML888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mbperl 2.0b3 [Mon Sep 3 07:35:53 2001]<P> > </BODY></HTML> > > One or more DATA sections were not processed by Inline. > > > > > I am baffled as to why there is an undefined subroutine in the embpexec.pl > invokation (and in the mod_perl request for that matter...). > > The Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4User class has amongst supported implementations a > Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Implementations888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ourierUser object which it delegates requests > to, a simple letter-envelope OO paradigm. All the symbols for this are > correctly obtained, the test.pl script verifies this. > > The Balcluth888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Implementations888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ourierUser package uses the Inline package > to wrap some grubby C code which does the work. The _getGroups call is one > of these 'private' functions. > > The following statement inside this package, > > use Inline (Config => > DIRECTORY => '/usr/local/apache/_Inline', > ENABLE => 'UNTAINT'); > > indicates where all these symbols are compiled to and may be found (and > indeed they are ...). > > I have used Perl XS/SWIG over the years, but this is my first foray into > Inline (which is remarkably simple to use). To my knowledge an inline'd > package may be treated like all other Perl packages. > > Does anyone know what is at issue and how to correct this untoward > behaviour? > > Cheers, Alan > > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmurphy@example.com > For additional commands, e-mail: jmurphy@example.com > > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 11:43:28 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 3217 invoked by uid 500); 3 Sep 2001 11:43:26 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 3206 invoked from network); 3 Sep 2001 11:43:25 -0000 Date: Mon, 3 Sep 2001 13:44:02 +0200 From: Lukas Zapletal <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: Lukas Zapletal <jmurphy@example.com> Organization: BACH systems s.r.o. X-Priority: 3 (Normal) Message-ID: <{{EMAIL+PHONE}}> To: EmbPerl <jmurphy@example.com> Subject: <tr> outside of table MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello EmbPerl, My Embperl is reporting this: [269]ERR: 21: Line 15: <tr> outside of table [269]ERR: 45: Line 15: Unclosed HTML tag <tr> at end of file but it is not true, the <TR> tag is NOT outside the table. What can I do? Regards Lukas Zapletal [jmurphy@example.com] web programmer Bach systems Ltd., Czech Republic ----------- PGP FINGERPRINT ------------ 4BA4ECA3EDE9608558646ABBA14259E3459FA0B4 --------------- COOKIE ----------------- Linux -- Have you administered a real OS today? --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 11:48:40 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 5618 invoked by uid 500); 3 Sep 2001 11:48:40 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 5607 invoked from network); 3 Sep 2001 11:48:38 -0000 Date: Mon, 3 Sep 2001 13:49:15 +0200 From: Lukas Zapletal <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: Lukas Zapletal <jmurphy@example.com> Organization: BACH systems s.r.o. X-Priority: 3 (Normal) Message-ID: <{{EMAIL+PHONE}}> To: Lukas Zapletal <jmurphy@example.com> CC: EmbPerl <jmurphy@example.com> Subject: Re: <tr> outside of table In-Reply-To: <{{EMAIL+PHONE}}> References: <{{EMAIL+PHONE}}> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N LZ> [269]ERR: 21: Line 15: <tr> outside of table LZ> [269]ERR: 45: Line 15: Unclosed HTML tag <tr> at end of file I have to be blind ;-) Of course Embperl was right... Regards Lukas Zapletal [jmurphy@example.com] web programmer Bach systems Ltd., Czech Republic ----------- PGP FINGERPRINT ------------ 4BA4ECA3EDE9608558646ABBA14259E3459FA0B4 --------------- COOKIE ----------------- Linux - It is now safe to turn on your computer. --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 14:09:57 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 61648 invoked by uid 500); 3 Sep 2001 14:09:57 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 61634 invoked from network); 3 Sep 2001 14:09:56 -0000 Message-id: <jmurphy@example.com> Date: Mon, 03 Sep 2001 22:09:58 +0800 Subject: Re(2): self-JOIN with DBIx To: jmurphy@example.com From: "mailing list" <jmurphy@example.com> MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Gerald, The original poster used 'start' as an alias of 'forumcomment' table and 'thread' as an alias of another 'forumcomment' table. jmurphy@example.com writes: >Which database you are using ? >> >> SELECT ... FROM forumcomment start, forumcomment thread > >What does "forumcomment start" mean. I guess "start" is your table name, >but >what is "forumcomment" ? Sorry, never seen this SQL syntax before. [...] sherwin --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 14:25:44 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 66340 invoked by uid 500); 3 Sep 2001 14:25:44 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 66329 invoked from network); 3 Sep 2001 14:25:43 -0000 Date: Mon, 3 Sep 2001 10:25:38 -0300 From: "Luiz Fernando B. Ribeiro" <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: "Luiz Fernando B. Ribeiro" <jmurphy@example.com> X-Priority: 3 (Normal) Message-ID: <jmurphy@example.com> To: jmurphy@example.com Subject: Re: Two frame application In-Reply-To: <jmurphy@example.com> References: <jmurphy@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Olá lukas, Reply: LZ> I have these files: LZ> /constants.epl LZ> /topbar/base.epl LZ> /main/base.epl LZ> constants.epl: LZ> [! LZ> use Carp; LZ> $req = shift; LZ> $req->{appname} = "test app"; LZ> !] LZ> I need to execute constants in both bases. Execute('../constants.epl') doesn`t LZ> work. How can I do it? Try this: [! use Carp; !] [- $req = shift; $req->{appname} = "test app"; -] If you put the $req stuff into [!!] block it will be executed just the first time the page is loaded. Bye, Luiz Fernando B. Ribeiro ---------------------------- At Home - Design e Internet jmurphy@example.com jmurphy@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Mon Sep 03 17:23:39 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 57598 invoked by uid 500); 3 Sep 2001 17:23:38 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 57587 invoked from network); 3 Sep 2001 17:23:37 -0000 To: jmurphy@example.com Subject: Re: self-JOIN with DBIx References: <jmurphy@example.com> <jmurphy@example.com> From: Jochen Lillich <jmurphy@example.com> Organization: TeamLinux Content-Type: text/plain; charset=US-ASCII Date: 03 Sep 2001 19:23:34 +0200 In-Reply-To: "Gerald Richter"'s message of "Fri, 31 Aug 2001 21:03:39 +0200" Message-ID: <jmurphy@example.com> Lines: 35 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Gerald Richter schrieb am Fri, 31 Aug 2001 21:03:39 +0200: >> SELECT ... FROM forumcomment start, forumcomment thread > What does "forumcomment start" mean. I guess "start" is your table name, but > what is "forumcomment" ? Sorry, never seen this SQL syntax before. This is normal SQL. "forummcomment" is the real name of the table. "start" and "thread" are alias names. I need those because I use the same table twice since it's self-referencing. Aliases can also be used in simpler cases if you want to shorten your SQL: SELECT * FROM verylongtablename a, anotherlongtablename b WHERE a.id = b.otherid; > Yes, DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset splits the !Table parameter between the commas and > takes every commponent as table name. That has worked quite well so far. Only until you use alias names for the tables. That's exactly the source of my problem. > First of all I have to understand what you like to do... I hope the smoke is clearing now? Best regards, Jochen -- Jochen Lillich http://geewiz.teamlinux.de ...and that is how we know the Earth to be banana-shaped. --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 05:42:30 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 7488 invoked by uid 500); 4 Sep 2001 05:42:29 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 7477 invoked from network); 4 Sep 2001 05:42:28 -0000 Date: Tue, 4 Sep 2001 07:43:00 +0200 From: Lukas Zapletal <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: Lukas Zapletal <jmurphy@example.com> Organization: BACH systems s.r.o. X-Priority: 3 (Normal) Message-ID: <jmurphy@example.com> To: "Luiz Fernando B. Ribeiro" <jmurphy@example.com> CC: jmurphy@example.com Subject: Re[2]: Two frame application In-Reply-To: <jmurphy@example.com> References: <jmurphy@example.com> <jmurphy@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Luiz, Monday, September 03, 2001, 3:25:38 PM, you wrote: LFBR> Olá lukas, Olá LFBR> If you put the $req stuff into [!!] block it will be executed just the LFBR> first time the page is loaded. Hmmm either in CGI mode? Regards Lukas Zapletal [jmurphy@example.com] web programmer Bach systems Ltd., Czech Republic ----------- PGP FINGERPRINT ------------ 4BA4ECA3EDE9608558646ABBA14259E3459FA0B4 --------------- COOKIE ----------------- Free your software, and your ass will follow --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 08:41:30 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 6330 invoked by uid 500); 4 Sep 2001 08:41:30 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 6319 invoked from network); 4 Sep 2001 08:41:29 -0000 Date: Tue, 4 Sep 2001 10:42:11 +0200 From: Lukas Zapletal <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: Lukas Zapletal <jmurphy@example.com> Organization: BACH systems s.r.o. X-Priority: 3 (Normal) Message-ID: <jmurphy@example.com> To: jmurphy@example.com Subject: connection pooling MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello embperl, How do you manage DBI connections? I have read something in Tips&Tricks but this approach IMHO can be slow on heavy loaded servers. Regards Lukas Zapletal [jmurphy@example.com] web programmer Bach systems Ltd., Czech Republic ----------- PGP FINGERPRINT ------------ 4BA4ECA3EDE9608558646ABBA14259E3459FA0B4 --------------- COOKIE ----------------- We are using Linux daily to UP our productivity -- so UP yours, Microsoft! --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 09:31:44 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 43918 invoked by uid 500); 4 Sep 2001 09:31:43 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 43905 invoked from network); 4 Sep 2001 09:31:42 -0000 Date: Tue, 4 Sep 2001 11:32:22 +0200 From: Lukas Zapletal <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: Lukas Zapletal <jmurphy@example.com> Organization: BACH systems s.r.o. X-Priority: 3 (Normal) Message-ID: <jmurphy@example.com> To: jmurphy@example.com Subject: Where to modify @INC MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello embperl, I need to find place for configuring perl includes. I use httpd.conf: SetEnv PERLLIB 'D:/Inetpub/libperl' but PERLLIB is comma-separated and I do not know how to set 'D:/'. Is there any other place where to set it? Regards Lukas Zapletal [jmurphy@example.com] web programmer Bach systems Ltd., Czech Republic ----------- PGP FINGERPRINT ------------ 4BA4ECA3EDE9608558646ABBA14259E3459FA0B4 --------------- COOKIE ----------------- Linux; a re-Gnu-able resource. --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 09:49:12 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 57316 invoked by uid 500); 4 Sep 2001 09:49:12 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 57304 invoked from network); 4 Sep 2001 09:49:11 -0000 Date: Tue, 4 Sep 2001 06:56:17 -0300 From: "Luiz Fernando B. Ribeiro" <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: "Luiz Fernando B. Ribeiro" <jmurphy@example.com> X-Priority: 3 (Normal) Message-ID: <jmurphy@example.com> To: jmurphy@example.com Subject: Re[3]: Two frame application In-Reply-To: <jmurphy@example.com> References: <jmurphy@example.com> <jmurphy@example.com> <jmurphy@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Olá lukas, Reply to your message: LFBR>> If you put the $req stuff into [!!] block it will be executed just the LFBR>> first time the page is loaded. LZ> Hmmm either in CGI mode? In CGI mode you can't use $req because $req is a feature available when you run Embperl under of mod_perl. Sem mais, Luiz Fernando B. Ribeiro ---------------------------- At Home - Design e Internet jmurphy@example.com jmurphy@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 10:10:39 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 73889 invoked by uid 500); 4 Sep 2001 10:10:35 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 73874 invoked from network); 4 Sep 2001 10:10:34 -0000 Date: Tue, 4 Sep 2001 12:11:13 +0200 From: Lukas Zapletal <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: Lukas Zapletal <jmurphy@example.com> Organization: BACH systems s.r.o. X-Priority: 3 (Normal) Message-ID: <jmurphy@example.com> To: jmurphy@example.com Subject: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello embperl, have anyone experiences with running Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI on WinNT ? I cannot connect to a database... it returns undef. lzap Regards Lukas Zapletal [jmurphy@example.com] web programmer Bach systems Ltd., Czech Republic ----------- PGP FINGERPRINT ------------ 4BA4ECA3EDE9608558646ABBA14259E3459FA0B4 --------------- COOKIE ----------------- "Microsoft technology" -- isn't that an oxymoron? --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 19:50:42 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 56748 invoked by uid 500); 4 Sep 2001 19:50:42 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 56694 invoked from network); 4 Sep 2001 19:50:41 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: "Lukas Zapletal" <jmurphy@example.com>, "Luiz Fernando B. Ribeiro" <jmurphy@example.com> Cc: <jmurphy@example.com> References: <jmurphy@example.com> <jmurphy@example.com> <jmurphy@example.com> Subject: Re: Re[2]: Two frame application Date: Tue, 4 Sep 2001 21:52:19 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > Hmmm either in CGI mode? > when running as CGI script everytime is the first time.... Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 19:53:00 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 62909 invoked by uid 500); 4 Sep 2001 19:53:00 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 62868 invoked from network); 4 Sep 2001 19:52:59 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: "Lukas Zapletal" <jmurphy@example.com>, <jmurphy@example.com> References: <jmurphy@example.com> Subject: Re: connection pooling Date: Tue, 4 Sep 2001 21:54:39 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > How do you manage DBI connections? under mod_perl use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI, when running CGI the only chance is to use DBI888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ProxyServer. Sometime ago I have some patches to DBI888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ProxyServer, to make it useable in this way, but I am not sure if they are already gone into the main DBI distribution. > I have read something in Tips&Tricks but this approach IMHO can be slow on > heavy loaded servers. > What do you mean here ? Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 19:54:37 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 66760 invoked by uid 500); 4 Sep 2001 19:54:37 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 66722 invoked from network); 4 Sep 2001 19:54:36 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: "Lukas Zapletal" <jmurphy@example.com>, <jmurphy@example.com> References: <jmurphy@example.com> Subject: Re: Where to modify @INC Date: Tue, 4 Sep 2001 21:56:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > I need to find place for configuring perl includes. > > I use httpd.conf: > > SetEnv PERLLIB 'D:/Inetpub/libperl' > > but PERLLIB is comma-separated and I do not know how to set 'D:/'. > > Is there any other place where to set it? > I usualy set it in a startup.pl: In httpd.conf PerlRequire /path/to/startup.pl in startup.pl use lib qw{d:\inetpub\libperl} ; Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 19:56:52 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 72298 invoked by uid 500); 4 Sep 2001 19:56:51 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 72262 invoked from network); 4 Sep 2001 19:56:51 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: "Luiz Fernando B. Ribeiro" <jmurphy@example.com> References: <jmurphy@example.com> <jmurphy@example.com> <jmurphy@example.com> <jmurphy@example.com> Subject: Re: Re[3]: Two frame application Date: Tue, 4 Sep 2001 21:58:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > In CGI mode you can't use $req because $req is a feature available when > you run Embperl under of mod_perl. > You can use EMbperl's request object as Lukas does with: [- $req = shift; $req->{appname} = "test app"; -] but you can use Embperl's predefined variable $req_rec which is a reference to the APache request record and therefore only available when running under mod_perl Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 19:58:17 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 76243 invoked by uid 500); 4 Sep 2001 19:58:17 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 76211 invoked from network); 4 Sep 2001 19:58:17 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: "Lukas Zapletal" <jmurphy@example.com>, <jmurphy@example.com> References: <jmurphy@example.com> Subject: Re: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI Date: Tue, 4 Sep 2001 21:59:56 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > have anyone experiences with running Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI on WinNT ? > > I cannot connect to a database... it returns undef. > Just say PerlModule Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI in your httpd.conf and use DBI as usual (as you would do it when Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI isn't present). This works correctly for me under NT Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 20:05:42 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 95067 invoked by uid 500); 4 Sep 2001 20:05:42 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 95027 invoked from network); 4 Sep 2001 20:05:41 -0000 Message-ID: <jmurphy@example.com> From: "Gerald Richter" <jmurphy@example.com> To: <jmurphy@example.com>, "Jochen Lillich" <jmurphy@example.com> References: <jmurphy@example.com><jmurphy@example.com> <jmurphy@example.com> Subject: Re: self-JOIN with DBIx Date: Tue, 4 Sep 2001 22:07:13 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > This is normal SQL. "forummcomment" is the real name of the table. "start" > and "thread" are alias names. I need those because I use the same table > twice since it's self-referencing. > ok, I see. I have used this before for fieldnames, but not for table names. Of course it make sense in your case. Unfortunately the current DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset can't handle it. Without looking at the source, I think the function QueryMetaData in Database.pm has to be adapted. I am currently don't have the time to change this, but I am happy to help you if you want to do it (I am out of office for the next two days, so I won't reply before friday, unless I find a chance to check my email). Patches are always welcome :-) Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: jmurphy@example.com Voice: 402.955.5320 WWW: http://www.ecos.de Fax: 402.955.5320 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Tue Sep 04 23:33:05 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 91210 invoked by uid 500); 4 Sep 2001 23:33:04 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 91175 invoked from network); 4 Sep 2001 23:33:04 -0000 Reply-To: <jmurphy@example.com> From: "Blayne Maring" <jmurphy@example.com> To: "Embeded PERL ML \(E-mail\)" <jmurphy@example.com> Subject: Internal redirect permission? Date: Tue, 4 Sep 2001 19:34:29 -0400 Message-ID: <001401c1359a$25742950$6401a8c0@maringlt> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am running the latest apache, mod_perl, and embperl on linux. All work fine independently. However, I want to handle all browser requests through a mod_perl controller and use internal redirect to embperl "templates". I can't figure out how to set up httpd.conf to provide permissions for the redirects. Getting "ERR 12: open error: Permission denied". I'm currently using Location tags in httpd.conf and have embperl applications in a separate directory (called embperl) while mod_perl applications are in cgi-bin directory. What am I missing? Blayne Maring --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Wed Sep 05 01:55:10 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 19327 invoked by uid 500); 5 Sep 2001 01:55:09 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 19316 invoked from network); 5 Sep 2001 01:55:09 -0000 Sender: jmurphy@example.com Message-ID: <jmurphy@example.com> Date: Wed, 05 Sep 2001 11:31:43 +0930 From: David Lloyd <jmurphy@example.com> X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.5-xfs-1.0.1 i586) X-Accept-Language: en MIME-Version: 1.0 To: jmurphy@example.com Subject: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI (OT Kinda) Question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N If I use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI under mod_perl and continuosly open and disconnect a DBI:mysql connection, it should reuse the same connection and not perform a database lookup all the time. I have a piece of code that I can't be bothered optimising (i.e. it currently opens and closes about 30 connections before finishing and recoding it would be a Pain In The Arse [PITA]). DSL -- Pussy's good for six at the most (Mrs. Lovett, Sweeney Todd) --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Wed Sep 05 02:16:19 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 35375 invoked by uid 500); 5 Sep 2001 02:16:19 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 35363 invoked from network); 5 Sep 2001 02:16:18 -0000 Date: Wed, 5 Sep 2001 12:16:13 +1000 To: jmurphy@example.com Subject: Re: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI (OT Kinda) Question Message-ID: <jmurphy@example.com> Mail-Followup-To: gus, jmurphy@example.com References: <jmurphy@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <jmurphy@example.com> User-Agent: Mutt/1.3.20i From: Angus Lees <jmurphy@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, Sep 05, 2001 at 11:31:43AM +0930, David Lloyd wrote: > If I use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI under mod_perl and continuosly open and disconnect > a DBI:mysql connection, it should reuse the same connection and not > perform a database lookup all the time. i presume your question is "..., right?" yes it should, providing you keep connecting with the same dsn, user and password (and the database connection is still ping()able). if you use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Status, you should be able to see the currently cached database connections (for that one apache child) in /perl-status (or wherever) -- - Gus --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Wed Sep 05 03:29:30 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 96175 invoked by uid 500); 5 Sep 2001 03:29:30 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 96164 invoked from network); 5 Sep 2001 03:29:30 -0000 Message-ID: <jmurphy@example.com> Date: Tue, 04 Sep 2001 23:30:27 -0400 From: Aaron Johnson <jmurphy@example.com> X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: David Lloyd <jmurphy@example.com> CC: jmurphy@example.com Subject: Re: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI (OT Kinda) Question References: <jmurphy@example.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You can verify correct operation of Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI by doing the following: 1) Make sure it appears BEFORE the DBI load in your startup.pl (or equivalent) 2) Use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Status and enable perl-status as needed in your httpd.conf load in this order: use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Status(); use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI(); use DBI(); 3) Pull the URL that should use the presistent connection and then check the status of the DBI connections via the perl-status default page. If you don't see any connections after calling that page then the database connection is NOT being reused. Aaron Johnson David Lloyd wrote: > If I use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI under mod_perl and continuosly open and disconnect > a DBI:mysql connection, it should reuse the same connection and not > perform a database lookup all the time. > > I have a piece of code that I can't be bothered optimising (i.e. it > currently opens and closes about 30 connections before finishing and > recoding it would be a Pain In The Arse [PITA]). > > DSL > -- > Pussy's good for six at the most > (Mrs. Lovett, Sweeney Todd) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmurphy@example.com > For additional commands, e-mail: jmurphy@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Wed Sep 05 06:06:44 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 83073 invoked by uid 500); 5 Sep 2001 06:06:43 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 83061 invoked from network); 5 Sep 2001 06:06:43 -0000 Date: Wed, 5 Sep 2001 08:07:14 +0200 From: Lukas Zapletal <jmurphy@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: Lukas Zapletal <jmurphy@example.com> Organization: BACH systems s.r.o. X-Priority: 3 (Normal) Message-ID: <jmurphy@example.com> To: "Gerald Richter" <jmurphy@example.com> CC: jmurphy@example.com Subject: Re[2]: connection pooling In-Reply-To: <jmurphy@example.com> References: <jmurphy@example.com> <jmurphy@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Gerald, Tuesday, September 04, 2001, 9:54:39 PM, you wrote: >> I have read something in Tips&Tricks but this approach IMHO can be slow on >> heavy loaded servers. GR> What do you mean here ? Maybe I didn`t understand properly. And it`s unofficial. I found the new ODBC drivers for MS SQL 7 offers connection pooling. I will use it -- it`s easyest way for my problem. Regards Lukas Zapletal [jmurphy@example.com] web programmer Bach systems Ltd., Czech Republic ----------- PGP FINGERPRINT ------------ 4BA4ECA3EDE9608558646ABBA14259E3459FA0B4 --------------- COOKIE ----------------- Going from DOS to Linux is like trading a glider for an F117. --------------------------------------------------------------------- To unsubscribe, e-mail: jmurphy@example.com For additional commands, e-mail: jmurphy@example.com From jmurphy@example.com Wed Sep 05 11:25:27 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 95903 invoked by uid 500); 5 Sep 2001 11:25:27 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 95891 invoked from network); 5 Sep 2001 11:25:26 -0000 Message-ID: <jmurphy@example.com> From: Rainer Perl <jmurphy@example.com> To: "Embperl ML (E-Mail)" <jmurphy@example.com> Subject: Problems with EmbperlObject Date: Wed, 5 Sep 2001 13:25:23 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C135FD.7434CD20" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C135FD.7434CD20 Content-Type: text/plain; charset="iso-8859-1" Hi, I'm having some strange problems with EmbperlObject (running via apache/mod_perl; Embperl 1.3.3). Here's my layout: /base.epl: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> [- Execute('*'); -] </html> I'm requesting /subdir/main.epl, it just cotains: [- Execute('../main.epl'); -] /main.epl has a line that says: Execute('sub.epl'); Everything works as expected (no errors) as long as there's only a /sub.epl. If I create a /subdir/sub.epl with the following content... [- Execute('../sub.epl'); -] ...then I will get "Missing right -]" errors. Is this some known problem with Embperl/EmbperlObject? I really don't understand why the file works if called from /main.epl but not from /subdir/sub.epl :o( Regards, Rainer Perl (yes, that IS my real name :) ) ------_=_NextPart_001_01C135FD.7434CD20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2653.12"> <TITLE>Problems with EmbperlObject</TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2>Hi,</FONT> </P> <P><FONT SIZE=3D2>I'm having some strange problems with EmbperlObject = (running via apache/mod_perl; Embperl 1.3.3). Here's my layout:</FONT> </P> <P><FONT SIZE=3D2>/base.epl:</FONT> </P> <P><FONT SIZE=3D2>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 = Transitional//EN&quot;&gt;</FONT> <BR><FONT SIZE=3D2>&lt;html&gt;</FONT> <BR><FONT SIZE=3D2>[- Execute('*'); -]</FONT> <BR><FONT SIZE=3D2>&lt;/html&gt;</FONT> </P> <P><FONT SIZE=3D2>I'm requesting /subdir/main.epl, it just = cotains:</FONT> </P> <P><FONT SIZE=3D2>[- Execute('../main.epl'); -]</FONT> </P> <P><FONT SIZE=3D2>/main.epl has a line that says:</FONT> </P> <P><FONT SIZE=3D2>Execute('sub.epl');</FONT> </P> <P><FONT SIZE=3D2>Everything works as expected (no errors) as long as = there's only a /sub.epl.</FONT> <BR><FONT SIZE=3D2>If I create a /subdir/sub.epl with the following = content...</FONT> <BR><FONT SIZE=3D2>[- Execute('../sub.epl'); -]</FONT> <BR><FONT SIZE=3D2>...then I will get &quot;Missing right -]&quot; = errors.</FONT> </P> <P><FONT SIZE=3D2>Is this some known problem with = Embperl/EmbperlObject? I really don't understand why the file works if = called from /main.epl but not from /subdir/sub.epl :o(</FONT></P> <P><FONT SIZE=3D2>Regards,</FONT> </P> <P><FONT SIZE=3D2>&nbsp;&nbsp; Rainer Perl (yes, that IS my real name = :) )</FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01C135FD.7434CD20-- From jmurphy@example.com Wed Sep 05 11:56:47 2001 Return-Path: <jmurphy@example.com> Delivered-To: jmurphy@example.com Received: (qmail 26033 invoked by uid 500); 5 Sep 2001 11:56:47 -0000 Mailing-List: contact jmurphy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:jmurphy@example.com> list-unsubscribe: <mailto:jmurphy@example.com> list-post: <mailto:jmurphy@example.com> Delivered-To: mailing list jmurphy@example.com Received: (qmail 26015 invoked from network); 5 Sep 2001 11:56:46 -0000 Message-ID: <jmurphy@example.com> From: Rainer Perl <jmurphy@example.com> To: "Embperl ML (E-Mail)" <jmurphy@example.com> Subject: Problems with EmbperlObject (now with sample source) Date: Wed, 5 Sep 2001 13:56:40 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C13601.D2DC3A80" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C13601.D2DC3A80 Content-Type: text/plain; charset="iso-8859-1" Hi again, while I was trying to track down the problem, I found something else... have a look: /base.epl: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> [- Execute('*'); -] </html> /main.epl: <body> This is the main-file <p> We're now calling the sub... <p> [- Execute('sub.epl'); -] </body> /sub.epl: <p> We're now in the sub, and we'll do some tests here... [$ if 0 > 1 $] <p>Wow, that's what I call a bug! [$ else $] <p>Everything OK [$ endif $] /subdir/main.epl: [- Execute('../main.epl'); -] Now, I'm requesting /subdir/main.epl, it gives me: --snip-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <body> This is the main-file <p> We're now calling the sub... <p> <p> We're now in the sub, and we'll do some tests here... <p>Everything OK </body> </html> --snip-- Ok... and now I'm adding /subdir/sub.epl: <p> This is subdir/sub.epl, I'll now call ../sub.epl... [- Execute('../sub.epl'); -] Again, I'm requesting /subdir/main.epl. But now it gives me: --snip-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <body> This is the main-file <p> We're now calling the sub... <p> <p> This is subdir/sub.epl, I'll now call ../sub.epl... <p> We're now in the sub, and we'll do some tests here... <p>Wow, th </body> </html> --snip-- Could someone please try this, to see if it is a bug or just something with my setup...? Regards, Rainer Perl P.S.: I'm afraid my company's exchange-server will convert this message to html - sorry about that, beyond my scope :( ------_=_NextPart_001_01C13601.D2DC3A80 Content-Type: text/html; charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12"> <TITLE>Problems with EmbperlObject (now with sample source)</TITLE> </HEAD> <BODY> <P><FONT SIZE=2>Hi again,</FONT> </P> <P><FONT SIZE=2>while I was trying to track down the problem, I found something else... have a look:</FONT> </P> <P><FONT SIZE=2>/base.epl:</FONT> </P> <P><FONT SIZE=2>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;</FONT> <BR><FONT SIZE=2>&lt;html&gt;</FONT> <BR><FONT SIZE=2>[- Execute('*');
{'source': 'Apache Software Foundation Public Mail Archives'}