Sharing vars across httpds

2000-11-06 Thread Differentiated Software Solutions Pvt. Ltd
Hi, We want to share a variable across different httpd processes. Our requirement is as follows : 1. We want to define one variable (which is a large hash). 2. Every httpd should be able to access this variable (read-only). 3. Periodically (every hour) we would like to have another

Re: Sharing vars across httpds

2000-11-06 Thread Steven Cotton
On Mon, 6 Nov 2000, Differentiated Software Solutions Pvt. Ltd wrote: Hi, We want to share a variable across different httpd processes. Our requirement is as follows : Look at the IPC::* modules, IPC::ShareLite will do exactly what you need. -- steven

Re: dynamic vs. mostly static data

2000-11-06 Thread Andy Wardley
On Nov 3, 9:52am, Ken Y. Clark wrote: btw, i'd really recommend you look into using Template Toolkit. Indeed. One of the nice things about TT (in the author's humble opinion) is that you can use the same presentation templates to render static HTML as for dynamic HTML. For example, you can

database access

2000-11-06 Thread Jason Liu
Hi, I can access oracle database from the main Apache process, but not from any child processes. I am fairly new to this subject, can someone give me some advice? Thanks in advance, Jason

Re: database access

2000-11-06 Thread David Hodgkinson
"Jason Liu" [EMAIL PROTECTED] writes: Hi, I can access oracle database from the main Apache process, but not from any child processes. I am fairly new to this subject, can someone give me some advice? What error are you getting? You looked in the error logs? What do you mean by "main"

Re: database access

2000-11-06 Thread Simon_Wilcox
Are you trying to establish a persistent connection using Apache::DBI ? IIRC Oracle connections don't persist across forks so you should use the method described in the Apache::DBI manpage to establish one connection per child: Apache::DBI-connect_on_init($data_source,

RE: database access

2000-11-06 Thread Jason Liu
Thanks for reply. I need some information in the Oracle database for access control. We have some methods in our proprietary library for Oracle access. I have a file called GateKeeper.pm that contains the access handler, sub handler{ ... }. I placed the same code inside and outside of the

[DIGEST] mod_perl digest 10/29/2000

2000-11-06 Thread Geoffrey Young
-- mod_perl digest October 29, 2000 - November 4, 2000 -- Recent happenings in the mod_perl world... Features

Re: database access

2000-11-06 Thread David Hodgkinson
"Jason Liu" [EMAIL PROTECTED] writes: In general, how should database connections be handled between parent and child processes? Can you establish database connections from within a handler? Absolutely. And using Abache::DBI caches the connection handle. -- Dave Hodgkinson,

Re: a web interface to visualize tables

2000-11-06 Thread G.Richter
I need a tool to interactively visualize DB tables from a web interface. Ideally this tool would let me: - rename column headers, - set cell alignments, widths, background colors, - reorder columns, - save all these visualisation settings in a DB, - it would be written in

Problems with SERVER_MERGE and DIR_MERGE

2000-11-06 Thread Andy Wardley
I've been playing around with SERVER_CREATE, SERVER_MERGE, DIR_CREATE and DIR_MERGE and having some mixed success. The first problem I encountered was that my *_MERGE methods were being ignored. The $class-can('DIR_MERGE') and $class-can('SERVER_MERGE') tests in the Apache::ExtUtils

Re: modifying $subr-run

2000-11-06 Thread Todd Finney
At 02:14 AM 11/6/00, Perrin Harkins wrote: Todd Finney wrote: This another follow-up to a previous thread, "maximum (practical) size of $r-notes", from last week. We're trying to redirect the output of $subr-run(), and return it as a variable instead of sending it to the browser.

Re: Apache::Scoreboard returns incomplete information to Apache::Watchdog::RunAway.

2000-11-06 Thread G.W. Haywood
Hi there, On Mon, 6 Nov 2000, Jayme Frye wrote: I am setting up Apache::Watchdog::RunAway and have come across a problem with Apache::Scoreboard that breaks Watchdog. [snip] Apache compile time options: SL_BASE=SYSTEM \ EAPI_MM=SYSTEM \ CC="egcs" \ OPTIM="-O9 Extract from

Re: modifying $subr-run

2000-11-06 Thread Ken Williams
[EMAIL PROTECTED] (Todd Finney) wrote: Todd Finney wrote: This another follow-up to a previous thread, "maximum (practical) size of $r-notes", from last week. We're trying to redirect the output of $subr-run(), and return it as a variable instead of sending it to the browser. [...]

Re: dynamic vs. mostly static data

2000-11-06 Thread Vivek Khera
"AW" == Andy Wardley [EMAIL PROTECTED] writes: AW On Nov 3, 9:52am, Ken Y. Clark wrote: btw, i'd really recommend you look into using Template Toolkit. AW Indeed. One of the nice things about TT (in the author's humble opinion) AW is that you can use the same presentation templates to

Re: mod_perl on specific scripts (fwd)

2000-11-06 Thread Matthew Byng-Maddick
n 6 Nov 2000, David Hodgkinson wrote: Matthew Byng-Maddick [EMAIL PROTECTED] writes: On 1 Nov 2000, David Hodgkinson wrote: Matthew Byng-Maddick [EMAIL PROTECTED] writes: You do, of course, know about all the latest patches for this, due to potential security problems

Re: dynamic vs. mostly static data

2000-11-06 Thread Dave Rolsky
On Mon, 6 Nov 2000, Vivek Khera wrote: head titleMy Site/title /head body tr td[% stick in body of article here "document.main" %]/td td[% stick in related info here "document.sidebar" if it exists %]/td /tr /body That is, I have exactly one template that I apply to each document.

Documentation patch for send_http_header()

2000-11-06 Thread Ken Williams
A patch to Apache.pm docs, to match what is actually going on already: === RCS file: /home/cvspublic/modperl/Apache/Apache.pm,v retrieving revision 1.57 diff -u -r1.57 Apache.pm --- Apache/Apache.pm2000/10/10 16:33:56 1.57

Re: dynamic vs. mostly static data

2000-11-06 Thread David Hodgkinson
Vivek Khera [EMAIL PROTECTED] writes: Is TT the something that will let me do this without too much headache? Yes. Look at PRE_PROCESS and POST_PROCESS in the man page. Cheers, Dave -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway

Re: [warn] [notice] child_init for process 3394, report any problems to [no address given] Thanks

2000-11-06 Thread Jose Albert
G.W. Haywood [EMAIL PROTECTED] I just have to say Thanks Again Ged On Fri, 3 Nov 2000, Jose Albert wrote: how to solve this problem ...? still waiting for server to warm up...not ok t/logs/error_log : [warn] [notice] child_init for process 3394 What happens if you run

Using Apache::SSI with redirected includes

2000-11-06 Thread Struan Donald
essentially is this possible? The reason is that at the moment i have includes that vary depending on the subdomain, but the file that includes them remains the same. e.g: !--#include virtual="/dir/inc.html"-- some content only if i'm looking at it from here.site.com rather than

[ANNOUNCE] Apache::SimpleReplace 0.06

2000-11-06 Thread Geoffrey Young
The URL http://morpheus.laserlink.net/~gyoung/modules/Apache-SimpleReplace-0.06.tar. gz has entered CPAN as file: $CPAN/authors/id/G/GE/GEOFF/Apache-SimpleReplace-0.06.tar.gz size: 3628 bytes md5: a0018cb6d18863878507bdad70f58c38 This is basically an update for Apache::Filter 1.013

Re: Dealing with spiders

2000-11-06 Thread ___cliff rayman___
Bill Moseley wrote: But it's amazing how many are just lame in that they take perfectly good HREF tags and mess them up in the request. For example, every day I see many requests from Novell's BorderManager where they forgot to convert HTML entities in HREFs before making the request.

Re: modifying $subr-run

2000-11-06 Thread Perrin Harkins
On Mon, 6 Nov 2000, Todd Finney wrote: The only difficulty then remaining is the existing CGI scripts that this system wraps. There are several dozen of these in place already, and changing the argument handling would be rather tedious. Do you know of an easy method for handling that

Re: Sharing vars across httpds

2000-11-06 Thread Perrin Harkins
On Mon, 6 Nov 2000, Differentiated Software Solutions Pvt. Ltd wrote: We want to share a variable across different httpd processes. Our requirement is as follows : 1. We want to define one variable (which is a large hash). 2. Every httpd should be able to access this variable (read-only).

Re: dynamic vs. mostly static data

2000-11-06 Thread Gerald Richter
head titleMy Site/title /head body tr td[% stick in body of article here "document.main" %]/td td[% stick in related info here "document.sidebar" if it exists %]/td /tr /body That is, I have exactly one template that I apply to each document. Right now I do that using

Re: Apache::Scoreboard returns incomplete information to Apache::Watchdog::RunAway.

2000-11-06 Thread Jayme Frye
"G.W. Haywood" wrote: Hi there, On Mon, 6 Nov 2000, Jayme Frye wrote: I am setting up Apache::Watchdog::RunAway and have come across a problem with Apache::Scoreboard that breaks Watchdog. [snip] Apache compile time options: SL_BASE=SYSTEM \ EAPI_MM=SYSTEM \ CC="egcs" \

how do I really proof, that my script is running under apaches mod_perl?

2000-11-06 Thread Alexander Förster
Hi all, maybe this one is a rookie-question ;) Q:Is it normal, that under linux, running apache with mod_perl, for requests on a script a separate system process is starting ? I saw a lot of processes (via `top`), all running separate my script, as I made some benchmark tests... - I thought,

$r-param() goes poof (Was: POST results in HTTP/1.0 (null))

2000-11-06 Thread Paul J. Lucas
On Fri, 3 Nov 2000, I wrote: So from within a function, I'm doing my $r = Apache::Request-new( Apache-request() ); warn "request=", $r-as_string(), "\n"; and, when I to a POST request, I get: Accept: image/gif, image/x-xbitmap, image/jpeg,

Memory Usage

2000-11-06 Thread Buddy Lee Haystack
I'm using RedHat Linux v6.1 on an Intel PII SMP box Apache v1.3.14 mod_perl v 1.23 Apache::DBI 0.87 DBI v1.13 DBD Pg v0.93 PostgreSQL v6.5.3 The morning after "logrotate" runs on my system, the memory usage increases by about 30 megabytes, and continues to do so after each weekly run of the

Chaining Perl and C handlers

2000-11-06 Thread Andrew Chen
All, The project I'm working on requres me to do the following: 1. GET/POST Request comes in 2. Request gets handled by a mod_perl handler, which modifies and adds to the GET/POST variables. 3. Request is then sent to a C handler (BEA WLS-Apache bridge) 4. Request is then handled by a JSP,

Re: dynamic vs. mostly static data

2000-11-06 Thread Marinos J. Yannikos
How can I 'cache' this data so that all Apache children can access it quickly? Is there a way to automatically update this cache periodically (say every 10 minutes)? If possible with your data, it'd probably be a good idea to generate static pages on-the-fly using mod_rewrite as in the

Apache::Registry() and strict

2000-11-06 Thread Ron Rademaker
Hello, I'm just starting with mod_perl and I'm using Apache::Registry(). The second line after #!/usr/bin/perl -w is use strict; But somehow variables I use in the script are still defined if I execute the script again, in one of the script I said undef $foo at the end, but I don't think this

Apache_1.3.14 mod_layout 1.24_01 core dump

2000-11-06 Thread George Sanderson
= I am resending this email because I initially sent it out late Friday evening and I only received further questions from one person. I was hoping that someone could shed some light on why I am having problems loading DSO modules

Re: how do I really proof, that my script is running under apaches mod_perl?

2000-11-06 Thread G.W. Haywood
Hi there, On Mon, 6 Nov 2000, [iso-8859-1] Alexander Förster wrote: Q:Is it normal, that under linux, running apache with mod_perl, for requests on a script a separate system process is starting ? Not unless you intentionally start one from your script. I wrote a script, included it via

Re: Memory Usage

2000-11-06 Thread G.W. Haywood
Hi there, On Mon, 6 Nov 2000, Buddy Lee Haystack wrote: The morning after "logrotate" runs on my system, the memory usage increases by about 30 megabytes, and continues to do so after each weekly run of the "logrotate" utility. What happens if you then do a graceful restart? Has anyone

Re: $r-param() goes poof (Was: POST results in HTTP/1.0 (null))

2000-11-06 Thread G.W. Haywood
Hi there, On Mon, 6 Nov 2000, Paul J. Lucas wrote: From within my authentication handler, I also access query string parameters. When I do this, the downstream content handler finds that $r-param() is empty. Search the Guide for PERL_STASH_POST_DATA. 73, Ged.

Re: dynamic vs. mostly static data

2000-11-06 Thread Perrin Harkins
On Tue, 7 Nov 2000, Marinos J. Yannikos wrote: If possible with your data, it'd probably be a good idea to generate static pages on-the-fly using mod_rewrite as in the related guide: http://www.engelschall.com/pw/apache/rewriteguide/#ToC33. If you have a caching proxy server running in front

Apache::Scoreboard returns incomplete information to Apache::Watchdog::RunAway.

2000-11-06 Thread Jayme Frye
I am setting up Apache::Watchdog::RunAway and have come across a problem with Apache::Scoreboard that breaks Watchdog. The broken thing is access_count which is always 0 (my $count = $process-my_access_count;). This causes process running time to continue to increase until the

Re: a web interface to visualize tables

2000-11-06 Thread Andy Wardley
On Nov 1, 4:57pm, Louis-David Mitterrand wrote: I need a tool to interactively visualize DB tables from a web interface. Ideally this tool would let me: - rename column headers, - set cell alignments, widths, background colors, - reorder columns, - save all these visualisation settings in

Re: a web interface to visualize tables

2000-11-06 Thread G.Richter
I need a tool to interactively visualize DB tables from a web interface. Ideally this tool would let me: - rename column headers, - set cell alignments, widths, background colors, - reorder columns, - save all these visualisation settings in a DB, - it would be written in perl

cvs commit: modperl-site/netcraft graph.jpg index.html input.data pseudo-graph.jpg

2000-11-06 Thread sbekman
sbekman 00/11/06 11:46:03 Modified:netcraft graph.jpg index.html input.data pseudo-graph.jpg Log: sep/oct 2000 data/graph Revision ChangesPath 1.3 +187 -188 modperl-site/netcraft/graph.jpg Binary file 1.30 +35 -33