RE: Apache showing Perl code

2003-03-06 Thread Miroslav Madzarevic
$val =~ s|"|\\"|g; print "${var}=\"${val}\"\n"; } I got the path found on the first line from an example Perl script (printenv.pl) that came with the latest version of the Apache server. Could anybody give me a hand with a suggestion or two? " -- Miro

Re: mod_perl training companies?

2002-03-24 Thread Miroslav Madzarevic
able to put this site in Powered by mod-perl section. You can reach us at http://www.modperldev.com (a website we're making to serve open community). -- Best regards, Miroslav Madzarevic, Senior Perl Programmer [EMAIL PROTECTED] Mod Perl Development  - http://www.modperldev.com Telephone:

Re: Serious bug, mixing mod-perl content

2002-03-13 Thread Miroslav Madzarevic
ror occurs, although it's very rare. I'm not using HTML::Mason here.   I noticed the error when I got error messages from beta which contains new code and I was actually working with www.   tnx. for suggestions -----Best regards,   Miroslav Madzarevic, Senior

Serious bug, mixing mod-perl content

2002-03-12 Thread Miroslav Madzarevic
is is a rare bug but happens.   We're using Mandrake Linux and it's 2 apache's (1 mod-perl enabled and the other without mod-perl - this one uses mod proxy and mod rewrite).   Can someone please direct me how can I solve this problem ? -----Best regards,  

Re: mod_perl training companies?

2002-03-07 Thread Miroslav Madzarevic
7;re making to serve open community). ----- Best regards, Miroslav Madzarevic, Senior Perl Programmer [EMAIL PROTECTED] Mod Perl Development http://www.modperldev.com Telephone: +381 64 1193 501 jamph $_=",,.,,.,,,.,,,.,,,..,,.,,,.,.,,,"; s/\s//gs;tr/,./05/;my(@a,$o,$i)=sp

Subrequests

2002-02-07 Thread Miroslav Madzarevic
Is it possible that my perl script (Apache::Registry, Apache::PerlRun, HTML::Mason or whatever) could run multiple times with same parameters when the user just invokes the URL once (for example clicks on tag) and if so how can I prevent this from happening. I guess this is because of subrequ

caching

2002-01-18 Thread Miroslav Madzarevic
How can kill If-Modified-Since and E-Tag incoming headers ? Do I do it in my custom PerlInitHandler module ? I have a development server and I don't wish anything to be cached (304 messages, not modified). Right now my Cookies are not set because of this. 10x

mixing cgi-bin & mod_perl

2001-12-20 Thread Miroslav Madzarevic
The scenario: There are two folders /cgi-binwith plain perl cgi /mod-perl with Apache::Registry scripts The application is being moved from cgi to mod_perl (Apache::Registry) one script at a time. My friend has a strange idea. He wants to mix cgi-bin & mod_perl by testing all of

Re: PPerl

2001-11-14 Thread Miroslav Madzarevic
PPerl is written in C and from a superficial look at the source code I'd say it's not very difficult to understand. If you want a pure perl solution take a look at POE (its being worked on ithreads these days but can use event driven fork) or consider writing something yourself. I guess the whol

Re: keeping perl in memory

2001-09-14 Thread Miroslav Madzarevic
cement but it will do. If there is another list to wich I should direct questions like these please direct me. Rgds, mire - Original Message - From: "Ged Haywood" <[EMAIL PROTECTED]> To: "Miroslav Madzarevic" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> S

keeping perl in memory

2001-09-14 Thread Miroslav Madzarevic
Blank This question does and doesn't have to do with mod_perl. I wish to keep perl binary (nothing related to apache) in memory so that each time a specific script is invoked there is no cost of perl startup time. The script gets executed many times (intercepts corporate, virtual domain email).

sharing % across requests

2001-09-06 Thread Miroslav Madzarevic
BlankWhat is the best way to share % across multiple requests ? I first tried with $r->notes('name'=>'value') but that wasn't persistent across requests (or maybe I was doing it wrong ?). Then I made a system to load data from database once at process ($$) startup and then fetch it from % (module

Re: mod_perl memory consumption

2001-08-28 Thread Miroslav Madzarevic
> > Why is the memory consumption so high ? According to my calculations it > > should take less than 100 kilobytes. > > What are you basing that on? I use a single object (lightweight) which I construct and then just call its method in a loop, once for each message. If I don't use globals, use

mod_perl memory consumption

2001-08-27 Thread Miroslav Madzarevic
BlankI wrote a program that converts 5 gigs of emails stored in mysql to phisical messages on disk (resulting in approximately 10 gigs). The program consumes way to much memory although I've wrote it in a very clean way (use strict, no globals, use of udef $var; to help free memory). I start it te

new CGI.pm and multipart/form-data

2001-07-10 Thread Miroslav Madzarevic
Had the same problem two days ago, solved it by copying old CGI.pm (luckily we have few computers running linux). Does Cpan have old module versions ? I believe so ...

switch user id

2001-07-09 Thread Miroslav Madzarevic
As you know, apache runs as nobody.nogroup so these are the files I'm allowed to access. I wish to access files owned by otheruser.othergroup. How can I do this under mod_perl (mason) ? Is there a thing I can use to change my current uid so I can read the file or directory I don't own ? I don't