. 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
----
nce
Scott
--------
Scott Alexander tietoverkkosuunnittelija
[EMAIL PROTECTED]
gsm: +358 (0)40 7505640
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.
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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') ;
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
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
Hi,
When using
SetHandler perl-script
PerlHandler Apache::RegistryFilter Apache::Dynagzip
PerlSetVar Filter On
PerlSetVar LightCompression On
Options +ExecCGI
PerlSetVar UseCGIHeadersFromScript Off
Perl
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
>
>
> ---
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
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
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
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
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
> 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
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
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
=> '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
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
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
ROTECTED] | http://cis.tamu.edu/systems/opensystems/
> +------
_
scott alexander
tietoverkkosuunnittelija
humak amk - finland
+358(0)407505640
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
);
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
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
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
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
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
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.
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.
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
43 matches
Mail list logo