Best way?

2000-05-10 Thread Scott Alexander
. Before this I didn't pass %output to each sub ... to be honest I really didn't understand how each sub new the values in %output. After turning on use strict I had to pass \%output because %output was empty in the subs. hope this makes sense. Scott ----

Using -w in a package

2000-05-10 Thread Scott Alexander
nce Scott -------- Scott Alexander tietoverkkosuunnittelija [EMAIL PROTECTED] gsm: +358 (0)40 7505640

using a module to contain settings.

2000-06-22 Thread Scott Alexander
I'm working on creating a site that is completely done in mod perl. The area that I'm running into problems with is using a single module to store configuration information. ie where images are stored. oracle settings, color codes etc. All the settings that are valid accross the entire site.

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 22 Jun 2000, at 17:51, Perrin Harkins wrote: > On Thu, 22 Jun 2000, Scott Alexander wrote: > > I then have an Initialize_globals function that I run to reset all the > > variables at the begining of a request. > Why would you reset all of your configuration globals at th

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 23 Jun 2000, at 14:45, Craig McLane wrote: > You could also export the variables (in which case @EXPORT_OK is > preferable to @EXPORT). It still needs to be a global variable, but you > won't need to refer to it with a fully qualified name. This is how we did the current site, and while it wor

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 23 Jun 2000, at 13:27, Perrin Harkins wrote: > On Fri, 23 Jun 2000, Scott Alexander wrote: > Okay, this is an easy one. You are declaring $imgserver as a lexical (my) > variable. When Perl finishes executing this file, lexical variables go > out of scope. You can fix this by

getting data posted to site

2000-06-29 Thread Scott Alexander
I'm trying to get the data that is posted from the browser durring a request. if ($r->method ne 'GET') { $r->read($buffer,$r->header_in('Content-Length')); #proccess data... } The $r->read() hangs the request completely. I ran an strace on httpd -X and posted the request secti

Re: Browser Sniffing

2000-06-29 Thread Scott Alexander
Looking at this, I'm tempted to do a similar thing. My thought was to take the code and then twist it slightly to put the information into a database. ie when I create a new session, grab the information about browser etc. Would save me a bit if it were already a completed apache:: module

Apache::Request question.

2000-07-06 Thread Scott Alexander
I've been looking over the Apache::Request docs, and am just wondering. It talks about the param calls being sticky like cgi, but I can't find anything about using this in forms similar to what you would do in CGI.pm. ie just $q->hidden('name') would print the hidden tag with the name name a

Re: Apache/mod_perl

2000-07-07 Thread Scott Alexander
So if i didn't want to wait, how would I go about getting an RSA liscense? to have a mod_ssl server before then. Also, are the CA's willing to sign for this time of server? Scott On 7 Jul 2000, at 11:34, Rob Tanner wrote: > If you can patiently wait till September 21 when the RSA patents expi

Re: Apache/mod_perl

2000-07-07 Thread Scott Alexander
The issue has less to do with the cost of the whole thing, then with Strong hold having horrible support as well as a laundry list of other problems. Our as we convert our code base into completely mod_perl modules, the stronghold 2.4.2 has to be replaced by either 3.x or going to some othe

Re: Best book

2000-07-11 Thread Scott Alexander
I used the eagle book. I have done very well with it. Are there really any other books out there on the subject? Scott On 11 Jul 2000, at 10:22, Pramod Sokke wrote: > Any ideas on which is the best book available out there for mod_perl?

[OT] mod_proxy, mod_perl, php

2002-12-18 Thread Scott Alexander
At the moment I have a front_end server with no php support. Backend is mod_perl. I'm planning to extend our document management system to serve www pages. The html documents are on the mod_perl machine. What happens if users add php code to their html documents? If I add php support on the fron

Re: [OT] mod_proxy, mod_perl, php

2002-12-19 Thread Scott Alexander
On Wed, 18 Dec 2002, Perrin Harkins wrote: > Scott Alexander wrote: > > At the moment I have a front_end server with no php support. > > > > Backend is mod_perl. I'm planning to extend our document management > > system to serve www pages. > > > > Th

Apache::TicketAccess

2003-02-20 Thread Scott Alexander
Hi, I'm trying to use the example from the Eagle book on page 309 - 314 using the TicketAccess, TicketMaster, TicketTool handlers. In TicketMaster in sub go_to_uri it sets the a cookie with the $ticket. I can print $ticket to error log to see what it contains. But for some reason the cookie neve

Re: Apache::TicketAccess

2003-02-20 Thread Scott Alexander
On Thu, 20 Feb 2003, Scott Alexander wrote: If I set my browser to david:8080/login.pl then everything works okay, Cookie gets set, and my session is current until I logout. So the setup is something to do with mod_proxy on the proxy server. Is it the cookie doesn't get sent back thr

Override Authentication for one sub directory

2003-03-02 Thread Scott Alexander
Hi, I'm using Apache-AuthCookie-3.04 for authentication I have a protected directory with 10 sub directories, one directory needs to be open to any user. I could write 10 or use a section in the conf file to create the 10 directory directives. Can I override the settings for one directory some

$r->headers_in->get('Referer') doesn't work with IE

2003-03-04 Thread Scott Alexander
Hi, I using recipe 10.4 from the mod_perl cookbook. in sub logout ($$) { # I'm setting the logout address to be the login page again. My login page # is made up of /bin/$environment_name/ # With Netscape it works fine .. my ($self, $r) = @_; my $uri = $r->headers_in->get('Referer') ;

Re: gzipchain

2003-05-27 Thread Scott Alexander
On Mon, 26 May 2003, Perrin Harkins wrote: > Scott Alexander wrote: > > Yes if I join all my output using > > > > $print = $print . "html source" > > > > and then one print at the end > > > > AND change my script name from script.pl to scr

Re: gzipchain

2003-05-27 Thread Scott Alexander
own directory. You might have one compressed directory and one plain then. > Otherwise you need to write your own fixup handler to turn compression off > dynamically. > > Please let me know if it works for you. > > Thanks, > Slava > > - Original Message ----- > Fr

Missing html code using dynagzip

2003-06-02 Thread Scott Alexander
Hi, When using SetHandler perl-script PerlHandler Apache::RegistryFilter Apache::Dynagzip PerlSetVar Filter On PerlSetVar LightCompression On Options +ExecCGI PerlSetVar UseCGIHeadersFromScript Off Perl

Re: Missing html code using dynagzip

2003-06-03 Thread Scott Alexander
ut if I turn on PerlSetVar LightCompression On the problem comes back. I had tested having this line commented out but it made no difference. Anyway good that it is working. Thanks. Regards Scott > 4. Let us know details of what you finally have. > > Thanks, > Slava > > > ---

dynamically set AuthUserFile

2000-04-17 Thread Scott Alexander
o use dynamically? And set AuthName dynamically? Any help or pointers in the right direction will be very much appreciated. regards Scott Scott Alexander tietoverkkosuunnittelija [EMAIL PROTECTED] gsm: +358 (0)40 7505640

Setting AuthUserFile dynamically ...

2000-04-18 Thread Scott Alexander
uire valid-user ErrorDocument 401 /systems/v2.0/error/401.html ErrorDocument 403 /systems/v2.0/error/403.html ErrorDocument 404 /systems/v2.0/error/404.html ErrorDocument 500 /systems/v2.0/error/500.html regards Scott ---- Scott Alexander tietoverkkosuunn

Reverse Proxy Setup

2002-09-26 Thread Scott Alexander
Hi, I have two experimental servers frontend and mod_perl. mod_perl is apache with mod_perl frontend is apache lightweight My config only passes *.pl thru to mod_perl When a user uploads a file they use a mod_perl script on mod_perl and the file is saved on mod_perl. But I want the file to be

reverse_proxy ?

2002-10-30 Thread Scott Alexander
Hi, In a test environment I have a apache front_end server and a apache mod_perl server both are on two physical different machines, plus another machine for the database. Our production server is one machine running only one instance of apache/mod_perl and another machine for the database. User

hashes and mod_perl

2000-10-31 Thread Scott Alexander
Hi, Is it possible using the magic of mod_perl to set a hash array available for all scripts without each script having to open the dbm file. eg Each of my scripts tie a dbm file to a hash array (%output). (about 600 elements) In some of my scripts I'm using functions recursively. Passing %ou

Re: hashes and mod_perl

2000-10-31 Thread Scott Alexander
> Hi there, > > On Tue, 31 Oct 2000, Scott Alexander wrote: > > > Is it possible using the magic of mod_perl to set a hash array > > available for all scripts without each script having to open the dbm > > file. > > It's not really a mod_perl specific

Re: learning for someone like me

2000-11-19 Thread Scott Alexander
book from oreilly's after reading a response to this thread. I should have bought this book along time ago! Who chose the title for this book? Scott ______ scott alexander humak amk - humak poly technic tietoverkkosuunnittelija softwa

Help with in httpd.conf

2000-12-31 Thread Scott Alexander
next year ;) regards Scott #!perl $Location {"/users/supervisor"} = { Limit => {"GET POST PUT DELETE "} = { Require => 'supervisor', }, } ; __END__ _ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Help with in httpd.conf

2000-12-31 Thread Scott Alexander
=> 'users', Auth_MySQL_Username_Field => 'user', Auth_MySQL_Password_Field => 'passwd', Auth_MySQL_Encryption_Types => 'Plaintext', Auth_MYSQL => 'on', Limit => { METHODS => `GET POST`, require => `user supervisor`, }, } ; __END__ _ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Help with Limit in

2000-12-31 Thread Scott Alexander
quot;, Limit => { 'METHODS' => "GET", 'Require' => "valid-user", #'METHODS' => "POST", 'Require' => "valid-user", }, } ; __END__ If I uncomment the last methods line then it doesn't work at all. But with only one methods line like it is now it works. How do I use Apache->httpd_conf ? regards Scott _ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Re: Help with Limit in

2001-01-01 Thread Scott Alexander
x27;on', Limit => { METHODS => 'GET POST PUT DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK', Require => 'user alexsc01', }, } ; __END__ --- End of forwarded message --- _ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Re: Help with Limit in

2001-01-01 Thread Scott Alexander
ROTECTED] | http://cis.tamu.edu/systems/opensystems/ > +------ _ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Too many connections with DBI

2001-01-10 Thread Scott Alexander
the time. BTW it's running redhat 7.0, 2 * 600 PIII with 256 MB, mysql 3.22.27, Apache 1.3.14, mod_perl 1.24_01 Alll with just standard installations. I haven't tweaked anything. Any help would be appreciated. regards Scott _ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Re: Too many connections with DBI

2001-01-10 Thread Scott Alexander
); Is it because the child has reached it's maximum life ? How many connections can you have open from DBI to mysql ? I have 9 db's with 10 children ~ 90 connections . All use the same user. Should I increase the memory from 256 MB to ? I have read http://perl.apache.org/guid

Re: Too many connections with DBI

2001-01-12 Thread Scott Alexander
On 11 Jan 2001, at 8:28, Scott Alexander wrote: My original message was below. I always understood each Apache child runs for a set number of times then stops. But I checked my httpd.conf file and the MaxRequestsPerChild is set to 0 Why would it ever ask for a new connect? Or is there

Difference between NN and IE

2001-02-16 Thread Scott Alexander
Hi, Why is it Netscape displays the pop up authenticate window when the user enters the wrong password. But Internet Explorer displays my 401.html page if I return an AUTH_REQUIRED; from my AuthAny.pm handler? If I click on the pop up window cancel in Netscape then it will display the 401.htm

Setting remote_user and passwd

2001-02-16 Thread Scott Alexander
op window asking them to login again but can I get pass this stage? Would using cookies by pass this problem? regards Scott _____ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Environment variables in startup.pl

2001-04-27 Thread Scott Alexander
Should this work in a startup.pl file my $hostname = $ENV{"HOSTNAME"} ; from the prompt I can write echo $HOSTNAME and get the correct hostname of the server. But from within startup.pl I don't get it. Scott

undef an array

2001-06-01 Thread Scott Alexander
Hi, in my code I have my @upper_id ; during the code I pass the array by reference to a sub routine and push values onto it. push @{$upper_id}, $row[0] ; Some of my code I have arrays of strings or ints. I might add 100 or more items to each array. The strings could be 50 characters long.

Re: [OT] Re: DB_File needs compatible versions

2001-10-03 Thread Scott Alexander
On Wed, 3 Oct 2001 [EMAIL PROTECTED] wrote: > > 1) I changed the symlink of db.h under /usr/include (btw, I'm using redhat 7.1) > and point it to db2/db.h > i.e. lrwxrwxrwx1 root root8 Jul 12 11:05 db.h -> db2/db.h > > 2) untar the source of db_file.pm and modify the config.

Re: modperl questions

2001-12-18 Thread Scott Alexander
On Tue, 18 Dec 2001, Alastair Stuart wrote: > question one > > There is a need to add new client profiles to the centralised > database, which create new application filesystems, new database > structures and CGI trees. Thus a new profile can be created > and activated with the push of a few but