[Perl Q]: Calendar function

1999-11-02 Thread Martin A. Langhoff
hi list, [sorry for the OT] I'm about to develop a monthly calendar, something akin to netscape's scheduler. To start, I'm looking for a reliable function to calculate each day of any given month/year. Or pointers to a usable formula to calculate it. I don't really mind doing it mys

XSSI parsing on CGI output

1999-01-02 Thread Martin A. Langhoff
hi list, let's say I am populating form data (when serving the form) from a few database fields. Now, I don't want to write embedded perl, and don't want to embed HTML in the code, because there are a few designers and my (the coder). So I wrote an Include that calls the CGI. The CGI outp

Problems w/ePerl

1999-01-16 Thread Martin A. Langhoff
hi list, I'm trying to get ePerl installed and I'm having some problems debugging the install process. Platform: RHLinux 5.2 Perl 5.004m4 Apache 1.3.3 mod_perl (unknown version) ePerl 2.2 running as nph-eperl (not through mod_perl) most of the

do "" command in Embperl

1999-01-17 Thread Martin A. Langhoff
hi all, after many efforts [and 2 days sweating/swearing] installing Embperl, it's working now, and I have a doubt ... I can't include a series if site-wide configuration options that I was used to load with a ` do"site.conf"; ` command. Is there a clean way to go around this o

How to run a secure mod_perl ?

1999-11-24 Thread Martin A. Langhoff
hi mod_perl gurus, I'm currently in dire problems (read sh*t): - In one week my Embperl powerd site debuts. - Just now, my webmaster tells me that I can't use Embperl _nor_ ePerl. Previously he had told me to use ePerl o whatever I wanted, now he's worried about security.

Reasons why DBI should fail w/mod_perl

1999-11-24 Thread Martin A. Langhoff
hi, Is there a list of possible reasons to explain why a DBI connect to a mysql server (apache and mysqld running on the same host) fails if called from mod_perl and succeeds from a standard CGI perl script? Wow! 41 words and not a single colon|comma|period|semicolon :) martin --

Re: How to run a secure mod_perl ?

1999-11-25 Thread Martin A. Langhoff
I'd like to thank you all. I've been enlightened by this thread. Apparently mod_perl/apache _can_ be crashed, but then only the specific httpd child process will crash. Or did I get it wrong? On the other hand, it _is_ possible to use a mod_perl/apache server on a high port using mod_r

Problem accessing DBI from EmbPerl

1999-11-26 Thread Martin A. Langhoff
hi list, I'm running Embperl on my ISPs webserver, and when I execute the following code (from the sample included with Embperl): === $DSN = 'dbi:mysql:mlanghoff' ; $table = 'registros' ; use DBI ; # connect to database $dbh = DBI->connect($DSN, 'mlanghoff', 'ml123') or die "Cannot conn

Followup: Problem accessing DBI from EmbPerl

1999-11-29 Thread Martin A. Langhoff
hi, I'm back on track, trying to debugf this beast. - Modperl is compiled _statically_ into apache. - DBI::mysql works great from CGI scripts. - There seem to be no user problems: the user the script runs under is allowed full control on /tmp, so it should be able

OT: CGI.pm (stupid) question

1999-12-02 Thread Martin A. Langhoff
hi all, sorry for posting off-topic. Really. Shouldn't. Couldn't. I'm having a stupid problem with an 'upload file' CGI I wrote based on the CGI.pm documentation. The code that is failing is at the end. The file is opened succesfully for writing (I did try and write a string

Re: OT: CGI.pm (stupid) question ->Solution

1999-12-02 Thread Martin A. Langhoff
Thanks to the great Alex Krohn the problem is solved: I had forgotten to write ENCTYPE='multipart/form-data' in the FORM tag. whoa. Sorry again for posting OT -- - Martin Langhoff @ S C I M Multimedia Technology - - http://www.scim.net | God is real until - - mailto:[EMAIL PR

[Embperl] Execute failing

1999-12-22 Thread Martin A. Langhoff
Hi list and hi Gerald, I'm stumbling a bit here. I've got embperl running on my intranet without a hitch. On the other hand, my ISP's got it running as a CGI, as documented in the Embperl docs. I've migrated all my subroutines to external ehtml files (ehtml is the extension I'm usin

[Embperl] Bareword not allowed !

1999-12-22 Thread Martin A. Langhoff
Hi all, and hi Gerald, I'm narrowing the problem down, from the previous post where I had mistakenly thought Execute would return true upon success. What I've found so far is : - The server is running Embperl as CGI - When it finds a statement looking like

Running 2 httpd on one mache question.

2000-01-26 Thread Martin A. Langhoff
Hi all, I've read all the documentation on how to run 2 different httpd, one for lightweight serving and a mod_perl enabled daemon. Also read the threads about this last weeks. But there's one thing that I can't imagine. When I run top, how do I tell memory/cpu consumption from lightweig

Embperl-mysql ==> dismal performance.

2000-01-27 Thread Martin A. Langhoff
I'm developing a site with a 'Salon' like structure. Its done with templates worked in SSI by the design team that pull in Embperl fragments. One of these Embperl fragments calls up a few mysql queries. I've got both an in-house testbed, rather crappy (p166, 64 MB, RHLinux 5.2, apache 1

[Embperl + SSI]GET parameters encoding.

2000-02-01 Thread Martin A. Langhoff
hi list, I'm using a mix of SSI and Embperl in a site that's almost done. I use a set of SSI templates that load the 'content file' indicated by the query string. And sometimes the 'content file' is an Embperl file. So far so good. Now for a specific page, I definitely need to pass some

[Embperl] Packages and shared code.

2000-02-01 Thread Martin A. Langhoff
hi I've built my forst 'complex' site with Embperl, with a series of web-applications like a calendar and an address book relie. The code is modularized in a main lib, where all the DBI routines are implemented and a separated lib for each 'application'. These libs are 'Executed' to comp

Bug in mod_perl makefile?

2000-02-03 Thread Martin A. Langhoff
Hi, I've just got my apache/modperl setup to work. This little nastie took me 2 days to find. In my /usr/src directory, I had: - apache_1.3.3 [dir] - apache_1.3.9 [dir] - mod_perl-1.21 [dir] and was compiling modperl/perl with: #perl Makefile.PL APACH

[OT][General Programming] Key Generator sub

2000-04-06 Thread Martin A. Langhoff
hi list! I'm guilty of being a self taught programmer, and so, from time to time, I find myself asking silly questions. Hope you don't mind too much. [if you do, flame me privately, please ... lets keep my shame between the two of us] ok, what I'm looking for is a poor man's crypt()

Re: [OT][General Programming] Key Generator sub

2000-04-07 Thread Martin A. Langhoff
I think I'll follow this path. You mean turn the string into a number using the chr value? Marshall Dudley wrote: > The easiest way to do a crypt with plain vanilla 4 funtion math is to turn > the string into a number, then divide the number by a large prime number. > Then take the decimal part

2 server setup w/mod_proxy with a per-filename filter

2000-05-01 Thread Martin A. Langhoff
hi, I'm trying to implement a one light + one fat apache server setup and I'm stumbling with the lack of an option to proxy-pass based on filename. It seems that mod_proxy is designed to handle complete hostnames and directories, and I'm wanting it to proxy everything that looks ~ \.pl$