Can't call method is_initial_req without a package or object reference at .........

2003-06-17 Thread Martin Moss
All, I'm having some problems with Apache giving me grief, or most probably me getting my knickers in a complete twist. I get the following error:- Can't call method is_initial_req without a package or object reference at . It seems to happen when my URL ends like this:- /somepath/16

Re: Can't call method is_initial_req without a package or object reference at .........

2003-06-17 Thread Martin Moss
Ok, that makes sense, thank you:-) But 'What' should I return, is $r-main the right thing to return? unless ($r-is_main ) { print STDERR Apache::Request is not Main, Getting Main\n; print STDERR Dumper($r); $r=$r-main; print STDERR Main Apache::Request is:-\n;

Re: Can't call method is_initial_req without a package or object reference at .........

2003-06-17 Thread Martin Moss
Thanks Geoffrey. Marty - Original Message - From: Geoffrey Young [EMAIL PROTECTED] To: Martin Moss [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:23 PM Subject: Re: Can't call method is_initial_req without a package or object reference at . Martin

font width to pixel width in perl - but also offtopic in javascript

2003-06-05 Thread Martin Moss
Hi All, I'm sure this can't be an issue that hasn't been tackled, but I couldn't find anything in the archives so:- I'm trying to find a way in which I can calculate the pixel width of a string in a given font. I'm doing this to feed a javascript file, so I am also looking at doing this in

Re: font width to pixel width in perl - but also offtopic in javascript

2003-06-05 Thread Martin Moss
Thanks, I may well have found a solution within javascript, which is then user end calculated, so more efficient and reliable, But thanks I'll remember GD for later use:-) Marty - Original Message - From: Ken Y. Clark [EMAIL PROTECTED] To: Martin Moss [EMAIL PROTECTED] Cc: [EMAIL

Re: how to secure perl modules?

2003-05-30 Thread Martin Moss
Hi All, Just to throw a spanner in the works, a little while ago I came across the following Article on the Net. http://www.perl.com/pub/a/2002/10/15/radiator.html From what I can tell The author of the 'radiator' product claims to have successfully shipped 'encrypted' code. I've been pondering

Subclassed Apache::Request Objects and their creation/destruction

2003-04-04 Thread Martin Moss
All,I'm looking for some help with understanding how the Apache::Request objectsare created and destroyed.I have the following params set in my httpd.confKeepAlive OffPerlChildInitHandler Bficient::Apache::DBloadWhich as I understand it should mean that an apache::Request object iscreated

checking what values have been set using pnotes/notes

2003-04-04 Thread Martin Moss
All, Is there a way to work out what values have been set using pnotes/notes, So that a cleanup Handler can dynamically clear the values, rather than only clear ones pre-programmed? Marty

Can anyone Rcommend a good Apache mailing list

2003-03-05 Thread Martin Moss
All, I'm having issues with conflicts between using Port and Listen directives for access via LAN and ssh tunnel (or proxy). Can anyone recommend a mailing list I can post my problem to? Kind Regards Marty From les Rosbeufs to les Grenuoilles, Standing up to a bully bigger than you is bravery

Re: [error] Insecure dependency in unlink while running with -T switch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line 106

2003-02-28 Thread Martin Moss
Is Apache::Session::DB_type Faster than Apache::Session::File? I already use a lot of DB connections and I used Apache::Session::File to reduce this, Marty - Original Message - From: Cees Hek [EMAIL PROTECTED] To: Martin Moss [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, February

Re: [error] Insecure dependency in unlink while running with -Tswitch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line106

2003-02-28 Thread Martin Moss
as I could be operating on 100's of records. I was using Apache::Session to generate session IDs and allow me to timeout users etc... Marty - Original Message - From: Perrin Harkins [EMAIL PROTECTED] To: Martin Moss [EMAIL PROTECTED] Cc: Cees Hek [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

Re: [error] Insecure dependency in unlink while running with-Tswitch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pmline106

2003-02-28 Thread Martin Moss
Thanks mate, Will re-examine the drawing board.. Marty - Original Message - From: Perrin Harkins [EMAIL PROTECTED] To: Martin Moss [EMAIL PROTECTED] Cc: Cees Hek [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 28, 2003 2:52 PM Subject: Re: [error] Insecure dependency

[error] Insecure dependency in unlink while running with -T switch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line 106

2003-02-27 Thread Martin Moss
All, Can Anybody see what I'm doing wrong here? I have the following error :- [error] Insecure dependency in unlink while running with -T switch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line 106. When I run the following subroutine:- sub delete_session { my $self=shift;

Browser doesn't stop loading a page

2003-02-26 Thread Martin Moss
All, Not much to go on I know, but has anybody ever had this problem? When I load one of my webpages the browser never stops loading, e.g. the page loads ok and I can see and interact with it, but the ie spinning globe still keeps spinning and the status bar at the bottom of the page still shows

Re: Browser doesn't stop loading a page

2003-02-26 Thread Martin Moss
-Original Message- From: Chris Winters [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:22 AM To: Martin Moss Cc: Apache mod_perl Subject: Re: Browser doesn't stop loading a page Martin Moss wrote: Not much to go on I know, but has anybody ever had this problem? When

Re: Please wait Handler

2003-02-17 Thread Martin Moss
Thanks for all your help guys, Will have a think about it, Marty - Original Message - From: Randal L. Schwartz [EMAIL PROTECTED] To: Perrin Harkins [EMAIL PROTECTED] Cc: Andrew Ho [EMAIL PROTECTED]; Martin Moss [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 7:43 AM

Please wait Handler

2003-02-14 Thread Martin Moss
All, I was wondering if it is possible to Create a Handler that points a user at a page with an animated gif saying something like "Please wait", and then when my other handlers have finisheddisplay the page results I want from my mod perl handlers. I guess in a nutshell I'm wondering if

Re: mysql password encryption

2003-01-23 Thread Martin Moss
: Joe Palladino [EMAIL PROTECTED] To: Cees Hek [EMAIL PROTECTED]; Martin Moss [EMAIL PROTECTED] Cc: Modperl [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 3:44 PM Subject: RE: mysql password encryption Are the databases under the same database engine instance? If they are its not a problem

Re: mysql question

2003-01-23 Thread Martin Moss
that reading one post out of context, and then assuming I'm just randomly posting a mysql question 'out of the blue', is a little naive. Marty - Original Message - From: Perrin Harkins [EMAIL PROTECTED] To: Nick Tonkin [EMAIL PROTECTED]; Martin Moss [EMAIL PROTECTED] Cc: [EMAIL PROTECTED

mysql password encryption

2003-01-22 Thread Martin Moss
All, I wish to let a user use the same password for them to authenticate to a multitude of mysql Databases AND to authenticate themselves on my modperl site. the problem I have is that I store the password in the database as a Password field. However when I wish to use DBI to connect to another

modperl ttssh and port forwarding

2002-12-08 Thread Martin Moss
All, I have a configuration issue, and I was wondering if anybody has had the same problem? I have an adsl gateway (192.168.0.1 external IP) and a seperate webserver (192.168.0.10) on my home network. I want to allow a user on the internet access to my webserver. I have once before configured

Re: modperl ttssh and port forwarding - SOLVED

2002-12-08 Thread Martin Moss
All, sorry for the trouble, I finally worked out the problem, I didn't have libproxy.so loaded on my 192.168.0.10 machine and the directive ProxyRequests On set. Now that I do it works fine, Regards Marty - Original Message - From: Martin Moss [EMAIL PROTECTED] To: [EMAIL PROTECTED

identifying a unique browser session

2002-10-07 Thread Martin Moss
All, How would I go about identifying if a user logs in from 2 different browsers? I Have a Session object, but I want to hold data within that session object that identifies which browser a user is using. So I can confirm that a user who provides a session key in their cookie, is checked and

Daft question - preventing the username password box from appearing.

2002-10-01 Thread Martin Moss
All, How do I change the behaviour of get_basic_auth_passwd() I do not wish to have the prompt box appear, I want to have a dynamically produced login form which when submitted carries out the users previous command (I have an authentication system which 'times out' a user) the problem I have

Re: Daft question - preventing the username password box from appearing.

2002-10-01 Thread Martin Moss
thanks to everyone, Geoff's post made me re-examine AuthCookie and I realised I wasn't supposed to use the get_basic_auth_pw method at all. Thanks I understand whats going on now. Cheers Marty - Original Message - From: Lupe Christoph [EMAIL PROTECTED] To: Martin Moss [EMAIL PROTECTED

Re: problem with $r-push_handlers()

2002-09-17 Thread Martin Moss
die "$varname is Tainted" if (_is_tainted($varname)); } else { die "Taint Check failed for $varname\n"; } $HANDLERS{$untainted_keyname}=$varname; print STDERR "Added $keyname = $varname\n"; } } #$HANDLERS{'/test1/'}='MyMod::Apache::Test1'; #$HANDLERS{'/test2/'} =

Re: problem with $r-push_handlers()

2002-09-17 Thread Martin Moss
You are a star!!! I ammended your syntax slightly and did this:- my $sub_string='sub { '.$handler_bf.'($r) };'; $r-push_handlers(PerlHandler = eval $sub_string); Otherwise The handler routine of my handler module doesn't get passed the Apache object as it's first argument. It seems to work